mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Try to debug a Windows failure on the buildbots.
This commit is contained in:
		
							parent
							
								
									c33f3f2339
								
							
						
					
					
						commit
						a2898c1d79
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -337,7 +337,7 @@ def test_timestamp_overflow(self):
 | 
				
			||||||
            del sys.path[0]
 | 
					            del sys.path[0]
 | 
				
			||||||
            remove_files(TESTFN)
 | 
					            remove_files(TESTFN)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @unittest.skipUnless(sys.platform == "win32", "Windows specific")
 | 
					    @unittest.skipUnless(sys.platform == "win32", "Windows-specific")
 | 
				
			||||||
    def test_extension_import_fail(self):
 | 
					    def test_extension_import_fail(self):
 | 
				
			||||||
        # Issue 1559549 added `name` and `path` attributes to ImportError
 | 
					        # Issue 1559549 added `name` and `path` attributes to ImportError
 | 
				
			||||||
        # in order to provide better detail. Issue 10854 implemented those
 | 
					        # in order to provide better detail. Issue 10854 implemented those
 | 
				
			||||||
| 
						 | 
					@ -352,6 +352,9 @@ def test_extension_import_fail(self):
 | 
				
			||||||
                import extension
 | 
					                import extension
 | 
				
			||||||
            self.assertEqual(err.exception.name, pkg_name)
 | 
					            self.assertEqual(err.exception.name, pkg_name)
 | 
				
			||||||
            # The path we get back has the dot-slash, e.g., ".\\extension.pyd"
 | 
					            # The path we get back has the dot-slash, e.g., ".\\extension.pyd"
 | 
				
			||||||
 | 
					            self.assertIsNotNone(err.exception.path,
 | 
				
			||||||
 | 
					                'unexpected None for ImportError.path: '
 | 
				
			||||||
 | 
					                '{!r}'.format(err.exception))
 | 
				
			||||||
            self.assertEqual(os.path.relpath(err.exception.path), pkg_file)
 | 
					            self.assertEqual(os.path.relpath(err.exception.path), pkg_file)
 | 
				
			||||||
        finally:
 | 
					        finally:
 | 
				
			||||||
            unlink(pkg_file)
 | 
					            unlink(pkg_file)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue