diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-06-17 13:23:18 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-06-17 13:23:18 (GMT) |
commit | 4155f97699d0d1624442f3a317896add6ff0d8b5 (patch) | |
tree | 4d99ac3ad2d958e7e3cb0073f2fdbe8d68ccd19e /Lib/test/test_inspect.py | |
parent | d35a32e12eb7e3cf863cff80218e10c9bf3f351f (diff) | |
download | cpython-4155f97699d0d1624442f3a317896add6ff0d8b5.zip cpython-4155f97699d0d1624442f3a317896add6ff0d8b5.tar.gz cpython-4155f97699d0d1624442f3a317896add6ff0d8b5.tar.bz2 |
Don't use os.normcase when the result we are expecting is None.
This worked fine on linux but fails on Windows. That may or may
not be a but in normcase.
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r-- | Lib/test/test_inspect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index b515c1f..08e5022 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -278,7 +278,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) |