[pypy-commit] pypy py3.6: port test to py3

rlamy pypy.commits at gmail.com
Mon Sep 30 10:03:19 EDT 2019


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.6
Changeset: r97679:40bd3a3fb028
Date: 2019-09-30 15:02 +0100
http://bitbucket.org/pypy/pypy/changeset/40bd3a3fb028/

Log:	port test to py3

diff --git a/extra_tests/test_semlock.py b/extra_tests/test_semlock.py
--- a/extra_tests/test_semlock.py
+++ b/extra_tests/test_semlock.py
@@ -1,6 +1,6 @@
 from _multiprocessing import SemLock
 from threading import Thread
-import thread
+import _thread
 import time
 
 
@@ -23,7 +23,7 @@
         for t in threads:
             try:
                 t.start()
-            except thread.error:
+            except _thread.error:
                 # too many threads for this system
                 t.started = False
                 n_started -= 1


More information about the pypy-commit mailing list