mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
Fix test_pydoc when sys.modules["test"] is first imported using importlib.import_module.
This commit is contained in:
parent
fadf93a162
commit
085a656c81
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user