mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Issue #25365: test_pickle now works in threads disabled builds.
This commit is contained in:
		
						commit
						456a27013e
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -380,8 +380,9 @@ class CompatPickleTests(unittest.TestCase):
 | 
				
			||||||
                    self.assertEqual(mapping('exceptions', name),
 | 
					                    self.assertEqual(mapping('exceptions', name),
 | 
				
			||||||
                                     ('builtins', name))
 | 
					                                     ('builtins', name))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        import multiprocessing.context
 | 
					    def test_multiprocessing_exceptions(self):
 | 
				
			||||||
        for name, exc in get_exceptions(multiprocessing.context):
 | 
					        module = support.import_module('multiprocessing.context')
 | 
				
			||||||
 | 
					        for name, exc in get_exceptions(module):
 | 
				
			||||||
            with self.subTest(name):
 | 
					            with self.subTest(name):
 | 
				
			||||||
                self.assertEqual(reverse_mapping('multiprocessing.context', name),
 | 
					                self.assertEqual(reverse_mapping('multiprocessing.context', name),
 | 
				
			||||||
                                 ('multiprocessing', name))
 | 
					                                 ('multiprocessing', name))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue