Add a missing check before deleting a package's __loader__.

This commit is contained in:
Brett Cannon 2007-11-21 00:58:03 +00:00
parent 43e53f85b6
commit 9db1d5a379

View file

@ -1922,7 +1922,8 @@ def test_DocFileSuite():
... package='test')
... suite.run(unittest.TestResult())
... finally:
... del test.__loader__
... if added_loader:
... del test.__loader__
<unittest.TestResult run=3 errors=0 failures=3>
'/' should be used as a path separator. It will be converted