# HG changeset patch -- Bitbucket.org
# Project py-trunk
# URL http://bitbucket.org/hpk42/py-trunk/overview
# User holger krekel <hol...@merlinux.eu>
# Date 1273666327 -7200
# Node ID 11fce19ddcd940f921845b7624b30cf45f452da7
# Parent  25d1d792d80e89a66665ed403b250430491f1477
fix test to account for jython python file ending

--- a/testing/code/test_source.py
+++ b/testing/code/test_source.py
@@ -375,8 +375,7 @@ def test_getfslineno():
     fspath, lineno = getfslineno(f)
 
     fname = __file__
-    if fname.lower().endswith('.pyc'):
-        fname = fname[:-1]
+    fname = fname[:fname.find('.py')] + '.py'
 
     assert fspath == py.path.local(fname)
     assert lineno == py.code.getrawcode(f).co_firstlineno-1 # see findsource
_______________________________________________
py-svn mailing list
py-svn@codespeak.net
http://codespeak.net/mailman/listinfo/py-svn

Reply via email to