summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-11-21 00:58:03 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-11-21 00:58:03 (GMT)
commit9db1d5a379769a75294f02b0ed59e88a9ac05d90 (patch)
tree32d66f9dc2a5e58701e18f0dcc6abd858b5c37f8 /Lib
parent43e53f85b6f5e77a2f09cbda5833ffba5fbbdb2a (diff)
downloadcpython-9db1d5a379769a75294f02b0ed59e88a9ac05d90.zip
cpython-9db1d5a379769a75294f02b0ed59e88a9ac05d90.tar.gz
cpython-9db1d5a379769a75294f02b0ed59e88a9ac05d90.tar.bz2
Add a missing check before deleting a package's __loader__.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_doctest.py3
1 files changed, 2 insertions, 1 deletions
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 @@ 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