[pypy-svn] r35188 - pypy/dist/pypy/module/thread/rpython/test

fijal at codespeak.net fijal at codespeak.net
Fri Dec 1 10:46:50 CET 2006


Author: fijal
Date: Fri Dec  1 10:46:47 2006
New Revision: 35188

Modified:
   pypy/dist/pypy/module/thread/rpython/test/test_ll_thread.py
Log:
Added a skip when threads are not there.


Modified: pypy/dist/pypy/module/thread/rpython/test/test_ll_thread.py
==============================================================================
--- pypy/dist/pypy/module/thread/rpython/test/test_ll_thread.py	(original)
+++ pypy/dist/pypy/module/thread/rpython/test/test_ll_thread.py	Fri Dec  1 10:46:47 2006
@@ -1,4 +1,7 @@
-import thread
+try:
+    import thread
+except ImportError:
+    py.test.skip("Threads not supported")
 import pypy.module.thread.rpython.exttable   # for declare()/declaretype()
 from pypy.module.thread.rpython.ll_thread import *
 from pypy.annotation.annrpython import RPythonAnnotator



More information about the Pypy-commit mailing list