[svn r58030] check for different output according to cpython version

--HG--
branch : trunk
This commit is contained in:
hpk 2008-09-10 00:08:21 +02:00
parent 3febdb049d
commit d2d5bbd918
1 changed files with 5 additions and 2 deletions

View File

@ -215,7 +215,10 @@ def test_excinfo_no_sourcecode():
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