mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	asyncio: pep8-ify the code.
This commit is contained in:
		
							parent
							
								
									b0b0e628ee
								
							
						
					
					
						commit
						b41a42e316
					
				
					 5 changed files with 26 additions and 12 deletions
				
			
		|  | @ -367,7 +367,8 @@ def test__read_ready_error(self, m_read, m_logexc): | |||
|         tr._close.assert_called_with(err) | ||||
|         m_logexc.assert_called_with( | ||||
|             test_utils.MockPattern( | ||||
|                 'Fatal read error on pipe transport\nprotocol:.*\ntransport:.*'), | ||||
|                 'Fatal read error on pipe transport' | ||||
|                 '\nprotocol:.*\ntransport:.*'), | ||||
|             exc_info=(OSError, MOCK_ANY, MOCK_ANY)) | ||||
| 
 | ||||
|     @unittest.mock.patch('os.read') | ||||
|  | @ -664,7 +665,8 @@ def test__write_ready_err(self, m_write, m_logexc): | |||
|         self.assertTrue(tr._closing) | ||||
|         m_logexc.assert_called_with( | ||||
|             test_utils.MockPattern( | ||||
|                 'Fatal write error on pipe transport\nprotocol:.*\ntransport:.*'), | ||||
|                 'Fatal write error on pipe transport' | ||||
|                 '\nprotocol:.*\ntransport:.*'), | ||||
|             exc_info=(OSError, MOCK_ANY, MOCK_ANY)) | ||||
|         self.assertEqual(1, tr._conn_lost) | ||||
|         test_utils.run_briefly(self.loop) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yury Selivanov
						Yury Selivanov