[pypy-svn] r58056 - pypy/branch/pypy-pytrunk/pypy/interpreter/test
pedronis at codespeak.net
pedronis at codespeak.net
Thu Sep 11 10:29:01 CEST 2008
Author: pedronis
Date: Thu Sep 11 10:28:59 2008
New Revision: 58056
Modified:
pypy/branch/pypy-pytrunk/pypy/interpreter/test/test_code.py
Log:
(iko, pedronis)
fix the test by ignoring obscure details of py.lib reprs
Modified: pypy/branch/pypy-pytrunk/pypy/interpreter/test/test_code.py
==============================================================================
--- pypy/branch/pypy-pytrunk/pypy/interpreter/test/test_code.py (original)
+++ pypy/branch/pypy-pytrunk/pypy/interpreter/test/test_code.py Thu Sep 11 10:28:59 2008
@@ -8,9 +8,14 @@
space = gettestobjspace()
cls.space = space
if py.test.config.option.runappdirect:
- cls.w_file = space.wrap(__file__[:-1])
+ filename = __file__
else:
- cls.w_file = space.wrap("None<%s" % gateway.__file__[:-1])
+ filename = gateway.__file__
+
+ if filename[-3:] != '.py':
+ filename = filename[:-1]
+
+ cls.w_file = space.wrap(filename)
def test_attributes(self):
def f(): pass
More information about the Pypy-commit
mailing list