Skip to content

Commit

Permalink
Avoid python 3.9 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Nov 25, 2024
1 parent 5515cbd commit b3b9369
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apsw/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -10178,8 +10178,9 @@ def testBestPractice(self) -> None:
self.assertRaises(apsw.SQLError, con.execute, dqs)

# can't optimize or WAL readonly databases
with self.assertNoLogs():
apsw.Connection(self.db.filename, flags=apsw.SQLITE_OPEN_READONLY)
if sys.version_info >= (3, 10):
with self.assertNoLogs():
apsw.Connection(self.db.filename, flags=apsw.SQLITE_OPEN_READONLY)

def testExtTracing(self) -> None:
"apsw.ext Tracing and Resource usage"
Expand Down

0 comments on commit b3b9369

Please sign in to comment.