Commit d658f0ea authored by Florent Xicluna's avatar Florent Xicluna

Fix test_pydoc when sys.modules["test"] is first imported using importlib.import_module.

parent 3334a207
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment