@@ -874,7 +874,7 @@ def __getitem__(slf, x):
874874 with self .assertRaises (ZeroDivisionError ):
875875 self .cu .execute ("select name from test where name=?" , L ())
876876
877- def test_execute_use_after_close_with_bind_parameters (self ):
877+ def test_execute_and_concurrent_close_in___getitem__ (self ):
878878 # Prevent SIGSEGV when closing the connection while binding parameters.
879879 #
880880 # Internally, the connection's state is checked after bind_parameters().
@@ -1071,7 +1071,7 @@ def test_execute_many_not_iterable(self):
10711071 self .cu .executemany ("insert into test(income) values (?)" , 42 )
10721072
10731073 @subTests ("params_factory" , (ParamsCxCloseInIterMany , ParamsCxCloseInNext ))
1074- def test_executemany_use_after_close (self , params_factory ):
1074+ def test_executemany_and_concurrent_close_in___iter__ (self , params_factory ):
10751075 # Prevent SIGSEGV with iterable of parameters closing the connection.
10761076 # Regression test for https://github.com/python/cpython/issues/143198.
10771077 cx = sqlite .connect (":memory:" )
@@ -1088,7 +1088,7 @@ def test_executemany_use_after_close(self, params_factory):
10881088 # with 'iterable_wrapper' to exercise internals.
10891089 @subTests (("j" , "n" ), ([0 , 1 ], [0 , 3 ], [1 , 3 ], [2 , 3 ]))
10901090 @subTests ("iterable_wrapper" , (list , lambda x : x , lambda x : iter (x )))
1091- def test_executemany_use_after_close_with_bind_parameters (
1091+ def test_executemany_and_concurrent_close_in___getitem__ (
10921092 self , j , n , iterable_wrapper
10931093 ):
10941094 # Prevent SIGSEGV when closing the connection while binding parameters.
@@ -1801,8 +1801,8 @@ def test_connection_execute(self):
18011801 result = self .con .execute ("select 5" ).fetchone ()[0 ]
18021802 self .assertEqual (result , 5 , "Basic test of Connection.execute" )
18031803
1804- def test_connection_execute_use_after_close_with_bind_parameters (self ):
1805- # See CursorTests.test_execute_use_after_close_with_bind_parameters ().
1804+ def test_connection_execute_close_in___getitem__ (self ):
1805+ # See CursorTests.test_execute_and_concurrent_close_in___getitem__ ().
18061806
18071807 cx = sqlite .connect (":memory:" )
18081808 cx .execute ("create table tmp(a number)" )
@@ -1828,7 +1828,7 @@ def test_connection_executemany(self):
18281828 self .assertEqual (result [1 ][0 ], 4 , "Basic test of Connection.executemany" )
18291829
18301830 @subTests ("params_factory" , (ParamsCxCloseInIterMany , ParamsCxCloseInNext ))
1831- def test_connection_executemany_use_after_close (self , params_factory ):
1831+ def test_connection_executemany_close_in___iter__ (self , params_factory ):
18321832 # Prevent SIGSEGV with iterable of parameters closing the connection.
18331833 # Regression test for https://github.com/python/cpython/issues/143198.
18341834 cx = sqlite .connect (":memory:" )
@@ -1840,10 +1840,10 @@ def test_connection_executemany_use_after_close(self, params_factory):
18401840
18411841 @subTests (("j" , "n" ), ([0 , 1 ], [0 , 3 ], [1 , 3 ], [2 , 3 ]))
18421842 @subTests ("iterable_wrapper" , (list , lambda x : x ))
1843- def test_connection_executemany_use_after_close_with_bind_parameters (
1843+ def test_connection_executemany_close_in___getitem__ (
18441844 self , j , n , iterable_wrapper ,
18451845 ):
1846- # See CursorTests.test_executemany_use_after_close_with_bind_parameters ().
1846+ # See CursorTests.test_executemany_and_concurrent_close_in___getitem__ ().
18471847
18481848 cx = sqlite .connect (":memory:" )
18491849 cx .execute ("create table tmp(a number)" )
0 commit comments