diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index f15280755b5..b926d9a967f 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -275,7 +275,7 @@ class TestRetrievingSourceCode(GetSourceBase): self.assertEqual(normcase(inspect.getsourcefile(git.abuse)), modfile) fn = "_non_existing_filename_used_for_sourcefile_test.py" co = compile("None", fn, "exec") - self.assertEqual(normcase(inspect.getsourcefile(co)), None) + self.assertEqual(inspect.getsourcefile(co), None) linecache.cache[co.co_filename] = (1, None, "None", co.co_filename) self.assertEqual(normcase(inspect.getsourcefile(co)), fn)