summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-06-17 13:27:40 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-06-17 13:27:40 (GMT)
commit0217eb8cbd4444f23d399f673697fcd751e92214 (patch)
tree786bad2f2b8b3861e4ecb40b7c6c72e555cbeada /Lib
parenta58eed9cca47c6548a231600e3e3379a273b0908 (diff)
downloadcpython-0217eb8cbd4444f23d399f673697fcd751e92214.zip
cpython-0217eb8cbd4444f23d399f673697fcd751e92214.tar.gz
cpython-0217eb8cbd4444f23d399f673697fcd751e92214.tar.bz2
Merged revisions 82045 via svnmerge from
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. ........
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_inspect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py
index f152807..b926d9a 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)