[pypy-commit] pypy py3.5: Fix test

arigo pypy.commits at gmail.com
Sat Jul 8 11:16:52 EDT 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r91844:93580eb8c58e
Date: 2017-07-08 17:16 +0200
http://bitbucket.org/pypy/pypy/changeset/93580eb8c58e/

Log:	Fix test

diff --git a/pypy/module/thread/test/test_local.py b/pypy/module/thread/test/test_local.py
--- a/pypy/module/thread/test/test_local.py
+++ b/pypy/module/thread/test/test_local.py
@@ -73,13 +73,13 @@
         assert tags == ['???']
 
     def test_local_init2(self):
-        import thread
+        import _thread
 
         class A(object):
             def __init__(self, n):
                 assert n == 42
                 self.n = n
-        class X(thread._local, A):
+        class X(_thread._local, A):
             pass
 
         x = X(42)


More information about the pypy-commit mailing list