Skip to content

Commit e4ed5f5

Browse files
committed
Source is also needed for the frozen CLI check
1 parent c94240f commit e4ed5f5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/test/test_inspect/test_inspect.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6545,9 +6545,6 @@ def test_error_extension(self):
65456545
lines = err.decode().splitlines()
65466546
self.assertEqual(lines, [self.NO_SOURCE_ERROR])
65476547

6548-
# End-to-end frozen module test is intentionally omitted, as whether that
6549-
# works without any errors depends on if the source file is still present
6550-
65516548
def test_error_data(self):
65526549
_, out, err = assert_python_failure('-m', 'inspect',
65536550
'importlib.machinery:SOURCE_SUFFIXES')
@@ -6617,6 +6614,7 @@ def test_details_option_with_data_target(self):
66176614
self.assertEqual(output_lines, expected_lines)
66186615
self.assertEqual(err, b'')
66196616

6617+
@unittest.skipIf(not os.path.exists(os.path.__file__), "Needs frozen source file")
66206618
def test_details_option_with_aliased_target(self):
66216619
# Also an end-to-end test of successful non-module lookups
66226620
module = importlib.import_module("os.path")

0 commit comments

Comments
 (0)