mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	asyncio/tests: Fix deprecation warning
This commit is contained in:
		
							parent
							
								
									ec45226eeb
								
							
						
					
					
						commit
						aa78adc589
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -351,7 +351,7 @@ def test_readexactly_zero_or_less(self): | |||
|         self.assertEqual(b'', data) | ||||
|         self.assertEqual(self.DATA, stream._buffer) | ||||
| 
 | ||||
|         with self.assertRaisesRegexp(ValueError, 'less than zero'): | ||||
|         with self.assertRaisesRegex(ValueError, 'less than zero'): | ||||
|             self.loop.run_until_complete(stream.readexactly(-1)) | ||||
|         self.assertEqual(self.DATA, stream._buffer) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yury Selivanov
						Yury Selivanov