mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +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
				
			
		|  | @ -21,6 +21,7 @@ | |||
|               'sys.stdout.buffer.write(data)'))] | ||||
| 
 | ||||
| class SubprocessMixin: | ||||
| 
 | ||||
|     def test_stdin_stdout(self): | ||||
|         args = PROGRAM_CAT | ||||
| 
 | ||||
|  | @ -132,6 +133,7 @@ def test_broken_pipe(self): | |||
| if sys.platform != 'win32': | ||||
|     # Unix | ||||
|     class SubprocessWatcherMixin(SubprocessMixin): | ||||
| 
 | ||||
|         Watcher = None | ||||
| 
 | ||||
|         def setUp(self): | ||||
|  | @ -151,14 +153,20 @@ def tearDown(self): | |||
|             self.loop.close() | ||||
|             policy.set_event_loop(None) | ||||
| 
 | ||||
|     class SubprocessSafeWatcherTests(SubprocessWatcherMixin, unittest.TestCase): | ||||
|     class SubprocessSafeWatcherTests(SubprocessWatcherMixin, | ||||
|                                      unittest.TestCase): | ||||
| 
 | ||||
|         Watcher = unix_events.SafeChildWatcher | ||||
| 
 | ||||
|     class SubprocessFastWatcherTests(SubprocessWatcherMixin, unittest.TestCase): | ||||
|     class SubprocessFastWatcherTests(SubprocessWatcherMixin, | ||||
|                                      unittest.TestCase): | ||||
| 
 | ||||
|         Watcher = unix_events.FastChildWatcher | ||||
| 
 | ||||
| else: | ||||
|     # Windows | ||||
|     class SubprocessProactorTests(SubprocessMixin, unittest.TestCase): | ||||
| 
 | ||||
|         def setUp(self): | ||||
|             policy = asyncio.get_event_loop_policy() | ||||
|             self.loop = asyncio.ProactorEventLoop() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yury Selivanov
						Yury Selivanov