Skip to content

Commit 560a23c

Browse files
committed
more origin test
1 parent d5aa69c commit 560a23c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_import/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,12 @@ def test_frozen_module_from_import_error(self):
833833
os.__spec__.has_location = False
834834
del os.__file__
835835
from os import this_will_never_exist
836+
""",
837+
"""
838+
import os
839+
os.__spec__.origin = []
840+
os.__file__ = []
841+
from os import this_will_never_exist
836842
"""
837843
]
838844
for script in scripts:

0 commit comments

Comments
 (0)