test_sqlite_isolation fails with Python 3.11
See original GitHub issueWhen running tests with Python 3.11.0b3, I get the following failure:
$ python runtests.py
Unable to import APSW extension tests, skipping.
Unable to import CockroachDB tests, skipping.
Unable to import sqlite C extension tests, skipping.
Unable to import mysql-connector, skipping mysql_ext tests.
Unable to import postgres extension tests, skipping.
Unable to import SQLCipher extension tests, skipping.
Unable to import sqlite extension tests, skipping.
.s.....................s..................................s.....................sss...........................................s.......ss.....................................s........ssss............................................s...................................s.........................................................................s..................................................................................................................................................................ssss........................................ss.............................s..................s...........ss............s...s.........s....ss......s..............s..............................................................ss.......................E............ssssssss.....................................sss.......ssssssssssssss.....s..................s..ss..............................
======================================================================
ERROR: test_sqlite_isolation (tests.db_tests.TestSqliteIsolation.test_sqlite_isolation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/peewee/tests/db_tests.py", line 461, in test_sqlite_isolation
self.assertEqual(curs.fetchone()[0], 0)
~~~~~~~~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable
----------------------------------------------------------------------
Ran 894 tests in 5.487s
FAILED (errors=1, skipped=65)
Issue Analytics
- State:
- Created a year ago
- Comments:18 (8 by maintainers)
Top Results From Across the Web
What's New In Python 3.11 — Python 3.11.1 documentation
This article explains the new features in Python 3.11, compared to 3.10. For full details, see the ... PEP 657: Fine-grained error locations...
Read more >Potential regression in Python 3.11 (multiprocess shutdown?)
Running the Django test suite against the Python 3.11 pre-releases, we have hit a potential regression. Steps to reproduce git clone ...
Read more >When should you upgrade to Python 3.11?
The problem is that Python isn't supported indefinitely, nor do libraries support all Python versions indefinitely; eventually you'll stop ...
Read more >Python 3.11: Cool New Features for You to Try - Real Python
More Informative Error Tracebacks. Python is often recognized as a good beginner programming language, with its readable syntax and powerful ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI, the fix has been merged and will appear in the upcoming beta 4 release.
Thank you both @mgorny and @erlend-aasland for the help finding and fixing this.