Author: Ronan Lamy <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to