Commit f4fbd522 authored by Denis Bilenko's avatar Denis Bilenko

fix syntax of xtest_signal.py on python2.6

parent 00e30625
......@@ -37,7 +37,8 @@ def test_main():
# re-raises information about any exceptions the child
# throws. The real work happens in self.run_test().
os_done_r, os_done_w = os.pipe()
with closing(os.fdopen(os_done_r)) as done_r, closing(os.fdopen(os_done_w, 'w')) as done_w:
with closing(os.fdopen(os_done_r)) as done_r:
with closing(os.fdopen(os_done_w, 'w')) as done_w:
child = gevent.fork()
if not child:
# In the child process; run the test and report results
......@@ -54,7 +55,7 @@ def test_main():
else:
pickle.dump(None, done_w)
except:
print 'Uh oh, raised from pickle.'
print('Uh oh, raised from pickle.')
traceback.print_exc()
finally:
os._exit(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment