[py-svn] r58030 - py/trunk/py/code/testing
hpk at codespeak.net
hpk at codespeak.net
Wed Sep 10 00:08:24 CEST 2008
Author: hpk
Date: Wed Sep 10 00:08:21 2008
New Revision: 58030
Modified:
py/trunk/py/code/testing/test_excinfo.py
Log:
check for different output according to cpython version
Modified: py/trunk/py/code/testing/test_excinfo.py
==============================================================================
--- py/trunk/py/code/testing/test_excinfo.py (original)
+++ py/trunk/py/code/testing/test_excinfo.py Wed Sep 10 00:08:21 2008
@@ -215,8 +215,11 @@
except ValueError:
excinfo = py.code.ExceptionInfo()
s = str(excinfo.traceback[-1])
- assert s == " File '<string>':1 in ?\n ???\n"
-
+ if py.std.sys.version_info < (2,5):
+ assert s == " File '<string>':1 in ?\n ???\n"
+ else:
+ assert s == " File '<string>':1 in <module>\n ???\n"
+
def test_entrysource_Queue_example():
import Queue
try:
More information about the pytest-commit
mailing list