File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ def __fspath__(self):
217
217
)
218
218
219
219
async def test_copy_from_query_to_bad_output (self ):
220
- with self .assertRaisesRegexp (TypeError , 'output is expected to be' ):
220
+ with self .assertRaisesRegex (TypeError , 'output is expected to be' ):
221
221
await self .con .copy_from_query ('''
222
222
SELECT
223
223
i, i * 10
@@ -512,7 +512,7 @@ def __aiter__(self):
512
512
async def __anext__ (self ):
513
513
raise RuntimeError ('failure in source' )
514
514
515
- with self .assertRaisesRegexp (RuntimeError , 'failure in source' ):
515
+ with self .assertRaisesRegex (RuntimeError , 'failure in source' ):
516
516
await self .con .copy_to_table ('copytab' , source = _Source ())
517
517
518
518
# Check that the protocol has recovered.
@@ -542,7 +542,7 @@ async def __anext__(self):
542
542
else :
543
543
raise RuntimeError ('failure in source' )
544
544
545
- with self .assertRaisesRegexp (RuntimeError , 'failure in source' ):
545
+ with self .assertRaisesRegex (RuntimeError , 'failure in source' ):
546
546
await self .con .copy_to_table ('copytab' , source = _Source ())
547
547
548
548
# Check that the protocol has recovered.
You can’t perform that action at this time.
0 commit comments