[pypy-svn] r48273 - pypy/dist/pypy/translator/goal/test2
tismer at codespeak.net
tismer at codespeak.net
Sat Nov 3 18:30:53 CET 2007
Author: tismer
Date: Sat Nov 3 18:30:52 2007
New Revision: 48273
Modified:
pypy/dist/pypy/translator/goal/test2/test_app_main.py
Log:
relaxing test that depends on filenames in windows. os.abspath is incompatible
with autopath right now. The real fix is to implement _getfullpathname .
The provided fallback in ntpath is pretty insufficient, and a patch would
probably be suitable for CPython
Modified: pypy/dist/pypy/translator/goal/test2/test_app_main.py
==============================================================================
--- pypy/dist/pypy/translator/goal/test2/test_app_main.py (original)
+++ pypy/dist/pypy/translator/goal/test2/test_app_main.py Sat Nov 3 18:30:52 2007
@@ -337,5 +337,8 @@
data = self.run('-m pypy.translator.goal.test2.mymodule extra')
assert 'mymodule running' in data
assert 'Name: __main__' in data
- assert ('File: ' + p) in data
- assert ('Argv: ' + repr([p, 'extra'])) in data
+ # ignoring case for windows. abspath behaves different from autopath
+ # concerning drive letters right now
+ # XXX fix nt module to implement _getfullpathname
+ assert ('File: ' + p).lower() in data.lower()
+ assert ('Argv: ' + repr([p, 'extra'])).lower() in data.lower()
More information about the Pypy-commit
mailing list