fix test to account for jython python file ending

--HG--
branch : trunk
This commit is contained in:
holger krekel 2010-05-12 14:12:07 +02:00
parent 11bf293972
commit 169d8d1e54
1 changed files with 1 additions and 2 deletions

View File

@ -375,8 +375,7 @@ def test_getfslineno():
fspath, lineno = getfslineno(f) fspath, lineno = getfslineno(f)
fname = __file__ fname = __file__
if fname.lower().endswith('.pyc'): fname = fname[:fname.find('.py')] + '.py'
fname = fname[:-1]
assert fspath == py.path.local(fname) assert fspath == py.path.local(fname)
assert lineno == py.code.getrawcode(f).co_firstlineno-1 # see findsource assert lineno == py.code.getrawcode(f).co_firstlineno-1 # see findsource