[svn r58030] check for different output according to cpython version
--HG-- branch : trunk
This commit is contained in:
parent
3febdb049d
commit
d2d5bbd918
|
@ -215,7 +215,10 @@ def test_excinfo_no_sourcecode():
|
|||
except ValueError:
|
||||
excinfo = py.code.ExceptionInfo()
|
||||
s = str(excinfo.traceback[-1])
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue