@@ -118,6 +118,8 @@ def test_iterators(self):
118118 break
119119 self .assertIn (len (fm ), [1001 , 46 ])
120120
121+ @unittest .skip ("This test now fails because the API was changed to terminate and delete the transaction when the "
122+ "data returned by the statement exceeds the limit, making automated recovery impossible." )
121123 def test_pagination_backoff (self ):
122124 if self .using_mysql :
123125 return
@@ -161,24 +163,27 @@ def test_rowcount(self):
161163 def test_continue_after_timeout (self ):
162164 if os .environ .get ("TEST_CONTINUE_AFTER_TIMEOUT" , "False" ) != "True" :
163165 self .skipTest ("TEST_CONTINUE_AFTER_TIMEOUT env var is not 'True'" )
164-
166+
165167 if self .using_mysql :
166168 self .skipTest ("Not implemented for MySQL" )
167169
168170 try :
169171 with aurora_data_api .connect (database = self .db_name ) as conn , conn .cursor () as cur :
170172 with self .assertRaisesRegex (conn ._client .exceptions .ClientError , "StatementTimeoutException" ):
171- cur .execute ("INSERT INTO aurora_data_api_test(name) SELECT 'continue_after_timeout' FROM (SELECT pg_sleep(50)) q" )
173+ cur .execute (("INSERT INTO aurora_data_api_test(name) SELECT 'continue_after_timeout'"
174+ "FROM (SELECT pg_sleep(50)) q" ))
172175 with self .assertRaisesRegex (aurora_data_api .DatabaseError , "current transaction is aborted" ):
173176 cur .execute ("SELECT COUNT(*) FROM aurora_data_api_test WHERE name = 'continue_after_timeout'" )
174177
175178 with aurora_data_api .connect (database = self .db_name ) as conn , conn .cursor () as cur :
176179 cur .execute ("SELECT COUNT(*) FROM aurora_data_api_test WHERE name = 'continue_after_timeout'" )
177180 self .assertEqual (cur .fetchone (), (0 ,))
178-
179- with aurora_data_api .connect (database = self .db_name , continue_after_timeout = True ) as conn , conn .cursor () as cur :
181+
182+ with aurora_data_api .connect (database = self .db_name ,
183+ continue_after_timeout = True ) as conn , conn .cursor () as cur :
180184 with self .assertRaisesRegex (conn ._client .exceptions .ClientError , "StatementTimeoutException" ):
181- cur .execute ("INSERT INTO aurora_data_api_test(name) SELECT 'continue_after_timeout' FROM (SELECT pg_sleep(50)) q" )
185+ cur .execute (("INSERT INTO aurora_data_api_test(name) SELECT 'continue_after_timeout' "
186+ "FROM (SELECT pg_sleep(50)) q" ))
182187 cur .execute ("SELECT COUNT(*) FROM aurora_data_api_test WHERE name = 'continue_after_timeout'" )
183188 self .assertEqual (cur .fetchone (), (1 ,))
184189 finally :
0 commit comments