[pypy-svn] r69820 - in pypy/trunk/pypy/module: select/test signal/test

afa at codespeak.net afa at codespeak.net
Wed Dec 2 10:21:03 CET 2009


Author: afa
Date: Wed Dec  2 10:21:02 2009
New Revision: 69820

Modified:
   pypy/trunk/pypy/module/select/test/test_select.py
   pypy/trunk/pypy/module/signal/test/test_signal.py
Log:
Skip tests that cant't possibly work on Windows.


Modified: pypy/trunk/pypy/module/select/test/test_select.py
==============================================================================
--- pypy/trunk/pypy/module/select/test/test_select.py	(original)
+++ pypy/trunk/pypy/module/select/test/test_select.py	Wed Dec  2 10:21:02 2009
@@ -195,6 +195,8 @@
 
     def test_select_bug(self):
         import select, os
+        if not hasattr(os, 'fork'):
+            skip("no fork() on this platform")
         read, write = os.pipe()
         pid = os.fork()
         if pid == 0:

Modified: pypy/trunk/pypy/module/signal/test/test_signal.py
==============================================================================
--- pypy/trunk/pypy/module/signal/test/test_signal.py	(original)
+++ pypy/trunk/pypy/module/signal/test/test_signal.py	Wed Dec  2 10:21:02 2009
@@ -144,7 +144,10 @@
         cls.space = space
 
     def test_alarm_raise(self):
-        from signal import alarm, signal, SIG_DFL, SIGALRM
+        try:
+            from signal import alarm, signal, SIG_DFL, SIGALRM
+        except ImportError:
+            skip("no SIGALRM on this platform")
         import _socket
         class Alarm(Exception):
             pass



More information about the Pypy-commit mailing list