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

This commit is contained in:
Florent Xicluna 2010-03-06 14:04:16 +00:00
parent fadf93a162
commit 085a656c81

View File

@ -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