mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03: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.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…
Add table
Add a link
Reference in a new issue