commit | 085a656c81c601bd5102d0d2334363bb2e0c6af3 | [log] [tgz] |
---|---|---|
author | Florent Xicluna <florent.xicluna@gmail.com> | Sat Mar 06 14:04:16 2010 +0000 |
committer | Florent Xicluna <florent.xicluna@gmail.com> | Sat Mar 06 14:04:16 2010 +0000 |
tree | d1d406b96dcedf5c12a29d99f5637cea1c50cd98 | |
parent | fadf93a162858d0945363d820533594de5b48aec [diff] |
Fix test_pydoc when sys.modules["test"] is first imported using importlib.import_module.
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 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