mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Fix test_pydoc when sys.modules["test"] is first imported using importlib.import_module.
This commit is contained in:
parent
fadf93a162
commit
085a656c81
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue