svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r82045 | r.david.murray | 2010-06-17 09:23:18 -0400 (Thu, 17 Jun 2010) | 5 lines
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 bug in normcase.
........
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)