mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	(Merge 3.2) Issue #12096: Fix a race condition in
test_threading.test_waitfor(). Patch written by Charles-François Natali.
This commit is contained in:
		
						commit
						5f3b1c4979
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -474,7 +474,7 @@ def f():
 | 
				
			||||||
                self.assertEqual(state, 4)
 | 
					                self.assertEqual(state, 4)
 | 
				
			||||||
        b = Bunch(f, 1)
 | 
					        b = Bunch(f, 1)
 | 
				
			||||||
        b.wait_for_started()
 | 
					        b.wait_for_started()
 | 
				
			||||||
        for i in range(5):
 | 
					        for i in range(4):
 | 
				
			||||||
            time.sleep(0.01)
 | 
					            time.sleep(0.01)
 | 
				
			||||||
            with cond:
 | 
					            with cond:
 | 
				
			||||||
                state += 1
 | 
					                state += 1
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -679,6 +679,9 @@ Extension Modules
 | 
				
			||||||
Tests
 | 
					Tests
 | 
				
			||||||
-----
 | 
					-----
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Issue #12096: Fix a race condition in test_threading.test_waitfor(). Patch
 | 
				
			||||||
 | 
					  written by Charles-François Natali.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Issue #11614: import __hello__ prints "Hello World!". Patch written by
 | 
					- Issue #11614: import __hello__ prints "Hello World!". Patch written by
 | 
				
			||||||
  Andreas Stührk.
 | 
					  Andreas Stührk.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue