diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-06 14:04:16 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-06 14:04:16 (GMT) |
commit | 085a656c81c601bd5102d0d2334363bb2e0c6af3 (patch) | |
tree | d1d406b96dcedf5c12a29d99f5637cea1c50cd98 /Lib/test | |
parent | fadf93a162858d0945363d820533594de5b48aec (diff) | |
download | cpython-085a656c81c601bd5102d0d2334363bb2e0c6af3.zip cpython-085a656c81c601bd5102d0d2334363bb2e0c6af3.tar.gz cpython-085a656c81c601bd5102d0d2334363bb2e0c6af3.tar.bz2 |
Fix test_pydoc when sys.modules["test"] is first imported using importlib.import_module.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_pydoc.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index bfa99e7..a2b87c3 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -14,6 +14,10 @@ from test.support import ( from test import pydoc_mod +# Just in case sys.modules["test"] has the optional attribute __loader__. +if hasattr(pydoc_mod, "__loader__"): + del pydoc_mod.__loader__ + expected_text_pattern = \ """ NAME |