@@ -527,6 +527,7 @@ def test_connection_bad_reinit(self):
527527 cx .executemany , "insert into t values(?)" ,
528528 ((v ,) for v in range (3 )))
529529
530+ @unittest .skip ("TODO: RUSTPYTHON SQLITE_DBCONFIG constants not implemented" )
530531 def test_connection_config (self ):
531532 op = sqlite .SQLITE_DBCONFIG_ENABLE_FKEY
532533 with memory_database () as cx :
@@ -551,6 +552,7 @@ def test_connection_config(self):
551552 with self .assertRaisesRegex (sqlite .IntegrityError , "constraint" ):
552553 cx .execute ("insert into u values(0)" )
553554
555+ @unittest .skip ("TODO: RUSTPYTHON deprecation warning not emitted for positional args" )
554556 def test_connect_positional_arguments (self ):
555557 regex = (
556558 r"Passing more than 1 positional argument to sqlite3.connect\(\)"
@@ -564,12 +566,14 @@ def test_connect_positional_arguments(self):
564566 cx .close ()
565567 self .assertEqual (cm .filename , __file__ )
566568
569+ @unittest .skip ("TODO: RUSTPYTHON ResourceWarning not emitted" )
567570 def test_connection_resource_warning (self ):
568571 with self .assertWarns (ResourceWarning ):
569572 cx = sqlite .connect (":memory:" )
570573 del cx
571574 gc_collect ()
572575
576+ @unittest .skip ("TODO: RUSTPYTHON Connection signature inspection not working" )
573577 def test_connection_signature (self ):
574578 from inspect import signature
575579 sig = signature (self .cx )
@@ -871,6 +875,7 @@ def __getitem__(slf, x):
871875 with self .assertRaises (ZeroDivisionError ):
872876 self .cu .execute ("select name from test where name=?" , L ())
873877
878+ @unittest .skip ("TODO: RUSTPYTHON mixed named and positional parameters not validated" )
874879 def test_execute_named_param_and_sequence (self ):
875880 dataset = (
876881 ("select :a" , (1 ,)),
@@ -1083,6 +1088,7 @@ def test_array_size(self):
10831088
10841089 self .assertEqual (len (res ), 2 )
10851090
1091+ @unittest .skip ("TODO: RUSTPYTHON arraysize validation not implemented" )
10861092 def test_invalid_array_size (self ):
10871093 UINT32_MAX = (1 << 32 ) - 1
10881094 setter = functools .partial (setattr , self .cu , 'arraysize' )
@@ -1091,6 +1097,7 @@ def test_invalid_array_size(self):
10911097 self .assertRaises (ValueError , setter , - 3 )
10921098 self .assertRaises (OverflowError , setter , UINT32_MAX + 1 )
10931099
1100+ @unittest .skip ("TODO: RUSTPYTHON fetchmany behavior with exhausted cursor differs" )
10941101 def test_fetchmany (self ):
10951102 # no active SQL statement
10961103 res = self .cu .fetchmany ()
@@ -1119,6 +1126,7 @@ def test_fetchmany(self):
11191126 res = self .cu .fetchmany (100 )
11201127 self .assertEqual (res , [])
11211128
1129+ @unittest .skip ("TODO: RUSTPYTHON fetchmany size validation not implemented" )
11221130 def test_invalid_fetchmany (self ):
11231131 UINT32_MAX = (1 << 32 ) - 1
11241132 fetchmany = self .cu .fetchmany
@@ -1754,23 +1762,29 @@ def setUp(self):
17541762 self .cur = self .con .cursor ()
17551763 self .con .close ()
17561764
1765+ @unittest .skip ("TODO: RUSTPYTHON error message differs for closed connection" )
17571766 def test_closed_con_cursor (self ):
17581767 self .check (self .con .cursor )
17591768
1769+ @unittest .skip ("TODO: RUSTPYTHON error message differs for closed connection" )
17601770 def test_closed_con_commit (self ):
17611771 self .check (self .con .commit )
17621772
1773+ @unittest .skip ("TODO: RUSTPYTHON error message differs for closed connection" )
17631774 def test_closed_con_rollback (self ):
17641775 self .check (self .con .rollback )
17651776
1777+ @unittest .skip ("TODO: RUSTPYTHON error message differs for closed connection" )
17661778 def test_closed_cur_execute (self ):
17671779 self .check (self .cur .execute , "select 4" )
17681780
1781+ @unittest .skip ("TODO: RUSTPYTHON error message differs for closed connection" )
17691782 def test_closed_create_function (self ):
17701783 def f (x ):
17711784 return 17
17721785 self .check (self .con .create_function , "foo" , 1 , f )
17731786
1787+ @unittest .skip ("TODO: RUSTPYTHON error message differs for closed connection" )
17741788 def test_closed_create_aggregate (self ):
17751789 class Agg :
17761790 def __init__ (self ):
@@ -1781,16 +1795,19 @@ def finalize(self):
17811795 return 17
17821796 self .check (self .con .create_aggregate , "foo" , 1 , Agg )
17831797
1798+ @unittest .skip ("TODO: RUSTPYTHON error message differs for closed connection" )
17841799 def test_closed_set_authorizer (self ):
17851800 def authorizer (* args ):
17861801 return sqlite .DENY
17871802 self .check (self .con .set_authorizer , authorizer )
17881803
1804+ @unittest .skip ("TODO: RUSTPYTHON error message differs for closed connection" )
17891805 def test_closed_set_progress_callback (self ):
17901806 def progress ():
17911807 pass
17921808 self .check (self .con .set_progress_handler , progress , 100 )
17931809
1810+ @unittest .skip ("TODO: RUSTPYTHON error message differs for closed connection" )
17941811 def test_closed_call (self ):
17951812 self .check (self .con )
17961813
@@ -1913,6 +1930,7 @@ class MultiprocessTests(unittest.TestCase):
19131930 def tearDown (self ):
19141931 unlink (TESTFN )
19151932
1933+ @unittest .skip ("TODO: RUSTPYTHON multiprocess test fails" )
19161934 def test_ctx_mgr_rollback_if_commit_failed (self ):
19171935 # bpo-27334: ctx manager does not rollback if commit fails
19181936 SCRIPT = f"""if 1:
@@ -2024,6 +2042,7 @@ def test_row_equality(self):
20242042
20252043 self .assertNotEqual (r1 , r3 )
20262044
2045+ @unittest .skip ("TODO: RUSTPYTHON Row with no description fails" )
20272046 def test_row_no_description (self ):
20282047 cu = self .cx .cursor ()
20292048 self .assertIsNone (cu .description )
0 commit comments