[Python-checkins] r82045 - python/branches/py3k/Lib/test/test_inspect.py

r.david.murray python-checkins at python.org
Thu Jun 17 15:23:18 CEST 2010


Author: r.david.murray
Date: Thu Jun 17 15:23:18 2010
New Revision: 82045

Log:
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.


Modified:
   python/branches/py3k/Lib/test/test_inspect.py

Modified: python/branches/py3k/Lib/test/test_inspect.py
==============================================================================
--- python/branches/py3k/Lib/test/test_inspect.py	(original)
+++ python/branches/py3k/Lib/test/test_inspect.py	Thu Jun 17 15:23:18 2010
@@ -278,7 +278,7 @@
         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)
 


More information about the Python-checkins mailing list