[Python-checkins] cpython: Issue #25122: add debug traces to test_eintr.test_open()
victor.stinner
python-checkins at python.org
Wed Sep 16 09:23:44 CEST 2015
https://hg.python.org/cpython/rev/30bc256f2346
changeset: 98019:30bc256f2346
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Sep 16 09:23:28 2015 +0200
summary:
Issue #25122: add debug traces to test_eintr.test_open()
files:
Lib/test/eintrdata/eintr_tester.py | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/Lib/test/eintrdata/eintr_tester.py b/Lib/test/eintrdata/eintr_tester.py
--- a/Lib/test/eintrdata/eintr_tester.py
+++ b/Lib/test/eintrdata/eintr_tester.py
@@ -326,12 +326,26 @@
'# let the parent block',
'time.sleep(sleep_time)',
'',
+ 'print("try to open %a fifo for reading, pid %s, ppid %s"'
+ ' % (path, os.getpid(), os.getppid()),'
+ ' flush=True)',
+ '',
do_open_close_reader,
+ '',
+ 'print("%a fifo opened for reading and closed, pid %s, ppid %s"'
+ ' % (path, os.getpid(), os.getppid()),'
+ ' flush=True)',
))
proc = self.subprocess(code)
with kill_on_error(proc):
+ print("try to open %a fifo for writing, pid %s"
+ % (filename, os.getpid()),
+ flush=True)
do_open_close_writer(filename)
+ print("%a fifo opened for writing and closed, pid %s"
+ % (filename, os.getpid()),
+ flush=True)
self.assertEqual(proc.wait(), 0)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list