[pypy-commit] pypy py3.5: skip this on win32, the setup_class is run with python but the test with pypy3

mattip pypy.commits at gmail.com
Sun Dec 24 17:18:16 EST 2017


Author: Matti Picus <matti.picus at gmail.com>
Branch: py3.5
Changeset: r93558:0f5ba74055d1
Date: 2017-12-24 23:37 +0200
http://bitbucket.org/pypy/pypy/changeset/0f5ba74055d1/

Log:	skip this on win32, the setup_class is run with python but the test
	with pypy3

diff --git a/pypy/module/thread/test/test_thread.py b/pypy/module/thread/test/test_thread.py
--- a/pypy/module/thread/test/test_thread.py
+++ b/pypy/module/thread/test/test_thread.py
@@ -194,8 +194,8 @@
         assert sorted(lst) == list(range(120))
 
     def test_many_threads(self):
-        import _thread, time
-        if self.can_start_many_threads:
+        import _thread, time, sys
+        if self.can_start_many_threads or sys.platform == 'win32':
             skip("this OS supports too many threads to check (> 1000)")
         lock = _thread.allocate_lock()
         lock.acquire()


More information about the pypy-commit mailing list