[Python-checkins] cpython: Issue #23566: Skip "fd" tests of test_faulthandler on Windows

victor.stinner python-checkins at python.org
Fri Mar 13 11:14:30 CET 2015


https://hg.python.org/cpython/rev/211e29335e72
changeset: 94978:211e29335e72
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Mar 13 11:01:30 2015 +0100
summary:
 Issue #23566: Skip "fd" tests of test_faulthandler on Windows
subprocess doesn't support pass_fds on Windows.
files:
 Lib/test/test_faulthandler.py | 8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_faulthandler.py b/Lib/test/test_faulthandler.py
--- a/Lib/test/test_faulthandler.py
+++ b/Lib/test/test_faulthandler.py
@@ -221,6 +221,8 @@
 'Segmentation fault',
 filename=filename)
 
+ @unittest.skipIf(sys.platform == "win32",
+ "subprocess doesn't support pass_fds on Windows")
 def test_enable_fd(self):
 with tempfile.TemporaryFile('wb+') as fp:
 fd = fp.fileno()
@@ -373,6 +375,8 @@
 with temporary_filename() as filename:
 self.check_dump_traceback(filename=filename)
 
+ @unittest.skipIf(sys.platform == "win32",
+ "subprocess doesn't support pass_fds on Windows")
 def test_dump_traceback_fd(self):
 with tempfile.TemporaryFile('wb+') as fp:
 self.check_dump_traceback(fd=fp.fileno())
@@ -545,6 +549,8 @@
 with temporary_filename() as filename:
 self.check_dump_traceback_later(filename=filename)
 
+ @unittest.skipIf(sys.platform == "win32",
+ "subprocess doesn't support pass_fds on Windows")
 def test_dump_traceback_later_fd(self):
 with tempfile.TemporaryFile('wb+') as fp:
 self.check_dump_traceback_later(fd=fp.fileno())
@@ -645,6 +651,8 @@
 with temporary_filename() as filename:
 self.check_register(filename=filename)
 
+ @unittest.skipIf(sys.platform == "win32",
+ "subprocess doesn't support pass_fds on Windows")
 def test_register_fd(self):
 with tempfile.TemporaryFile('wb+') as fp:
 self.check_register(fd=fp.fileno())
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /