Fix erratically failing threads_exception python test

This commit is contained in:
William S Fulton 2013-03-23 16:52:30 +00:00
commit b504b68a62
2 changed files with 7 additions and 4 deletions

View file

@ -23,10 +23,12 @@ except RuntimeError,e:
try:
t.hosed()
except threads_exception.Exc,e:
if e.code != 42:
raise RuntimeError
if e.msg != "Hosed":
raise RuntimeError, "bad... msg: %s" % e.msg
code = e.code
if code != 42:
raise RuntimeError, "bad... code: %d" % code
msg = e.msg
if msg != "Hosed":
raise RuntimeError, "bad... msg: '%s' len: %d" % (msg, len(msg))
for i in range(1,4):
try: