Author: Antonio Cuni <anto.c...@gmail.com> Branch: py3k Changeset: r55246:db93696033f1 Date: 2012-05-31 17:06 +0200 http://bitbucket.org/pypy/pypy/changeset/db93696033f1/
Log: s/thread/_thread 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 @@ -90,8 +90,8 @@ assert len(done) == 5 def test_local_is_not_immortal(self): - import thread, gc, time - class Local(thread._local): + import _thread, gc, time + class Local(_thread._local): def __del__(self): done.append('del') done = [] @@ -102,7 +102,7 @@ self.waitfor(lambda: len(done) == 3, delay=8) l = Local() l.foo = 42 - thread.start_new_thread(f, ()) + _thread.start_new_thread(f, ()) self.waitfor(lambda: len(done) == 1, delay=2) l = None gc.collect() _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit