@@ -10844,9 +10844,8 @@ def testFunctionFlags(self) -> None:
1084410844
1084510845 def testBestPractice (self ) -> None :
1084610846 "apsw.bestpractice module"
10847- if sys .version_info >= (3 , 10 ):
10848- with self .assertNoLogs ():
10849- apsw .log (apsw .SQLITE_NOMEM , "Zebras are striped" )
10847+ with self .assertNoLogs ():
10848+ apsw .log (apsw .SQLITE_NOMEM , "Zebras are striped" )
1085010849 apsw .bestpractice .apply (apsw .bestpractice .recommended )
1085110850 with self .assertLogs () as l :
1085210851 apsw .log (apsw .SQLITE_NOMEM , "Zebras are striped" )
@@ -10863,14 +10862,12 @@ def testBestPractice(self) -> None:
1086310862 con = apsw .Connection ("" )
1086410863 # now fail
1086510864 apsw .config (apsw .SQLITE_CONFIG_LOG , None )
10866- if sys .version_info >= (3 , 10 ):
10867- with self .assertNoLogs ():
10868- self .assertRaises (apsw .SQLError , con .execute , dqs )
10865+ with self .assertNoLogs ():
10866+ self .assertRaises (apsw .SQLError , con .execute , dqs )
1086910867
1087010868 # can't optimize or WAL readonly databases
10871- if sys .version_info >= (3 , 10 ):
10872- with self .assertNoLogs ():
10873- apsw .Connection (self .db .filename , flags = apsw .SQLITE_OPEN_READONLY )
10869+ with self .assertNoLogs ():
10870+ apsw .Connection (self .db .filename , flags = apsw .SQLITE_OPEN_READONLY )
1087410871
1087510872 def testExtTracing (self ) -> None :
1087610873 "apsw.ext Tracing and Resource usage"
@@ -11224,13 +11221,9 @@ def stuff_namedtuple():
1122411221 (stuff_stat_struct , apsw .ext .VTColumnAccess .By_Attr , None ),
1122511222 ):
1122611223 if func is stuff_stat_struct :
11227- if sys .version_info < (3 , 10 ):
11228- a = apsw .ext .VTColumnAccess .By_Attr
11229- n = names = tuple (member for member in dir (next (func ())) if member .startswith ("st_" ))
11230- else :
11231- n , a = apsw .ext .get_column_names (next (func ()))
11232- names = n
11233- self .assertEqual (names , os .stat ("." ).__match_args__ )
11224+ n , a = apsw .ext .get_column_names (next (func ()))
11225+ names = n
11226+ self .assertEqual (names , os .stat ("." ).__match_args__ )
1123411227 else :
1123511228 n , a = apsw .ext .get_column_names (next (func ()))
1123611229 self .assertEqual (access , a )
@@ -12104,10 +12097,6 @@ def setup():
1210412097 if not getattr (memdb , "enableloadextension" , None ):
1210512098 del APSW .testLoadExtension
1210612099
12107- # earlier py versions make recursion error fatal
12108- if sys .version_info < (3 , 10 ):
12109- del APSW .testIssue425
12110-
1211112100 # Fork checker is becoming less usefull on newer Pythons because
1211212101 # multiprocessing really doesn't want you to use fork and does
1211312102 # alternate methods instead. We also run sanitizers on most
0 commit comments