[Python-checkins] r82108 - python/branches/py3k-signalfd-issue8407/Lib/test/test_signal.py

jean-paul.calderone python-checkins at python.org
Sun Jun 20 06:08:55 CEST 2010


Author: jean-paul.calderone
Date: Sun Jun 20 06:08:55 2010
New Revision: 82108

Log:
Skip on middle-ish versions of Linux

Modified:
   python/branches/py3k-signalfd-issue8407/Lib/test/test_signal.py

Modified: python/branches/py3k-signalfd-issue8407/Lib/test/test_signal.py
==============================================================================
--- python/branches/py3k-signalfd-issue8407/Lib/test/test_signal.py	(original)
+++ python/branches/py3k-signalfd-issue8407/Lib/test/test_signal.py	Sun Jun 20 06:08:55 2010
@@ -628,6 +628,8 @@
         self.assertTrue(bytes)
 
 
+    @unittest.skipIf(getattr('signal', 'SFD_CLOEXEC', None) is None,
+                     "signal.SFD_CLOEXEC only available on Linux >=2.6.27")
     def test_close_on_exec(self):
         """If the bit mask passed as the 3rd argument to signalfd includes
         SFD_CLOEXEC, the returned file descriptor has FD_CLOEXEC set on it.
@@ -639,6 +641,8 @@
         self.assertTrue(flags & fcntl.FD_CLOEXEC)
 
 
+    @unittest.skipIf(getattr('signal', 'SFD_NONBLOCK', None) is None,
+                     "signal.SFD_NONBLOCK only available on Linux >=2.6.27")
     def test_nonblocking(self):
         """If the bit mask passed as the 3rd argument to signalfd includes
         SFD_NOBLOCK, the file description referenced by the returned file


More information about the Python-checkins mailing list