commit | 9db1d5a379769a75294f02b0ed59e88a9ac05d90 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Wed Nov 21 00:58:03 2007 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Wed Nov 21 00:58:03 2007 +0000 |
tree | 32d66f9dc2a5e58701e18f0dcc6abd858b5c37f8 | |
parent | 43e53f85b6f5e77a2f09cbda5833ffba5fbbdb2a [diff] [blame] |
Add a missing check before deleting a package's __loader__.
diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py index e96785c..f53a759 100644 --- a/Lib/test/test_doctest.py +++ b/Lib/test/test_doctest.py
@@ -1922,7 +1922,8 @@ ... 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