From 2067bfdf253e134a4144d3747300dbfcc7cc6203 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 25 May 2008 13:05:15 +0000 Subject: Rename thread to _thread and dummy_thread to _dummy_thread. Issue #2875. --- Lib/test/fork_wait.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/fork_wait.py') diff --git a/Lib/test/fork_wait.py b/Lib/test/fork_wait.py index 678e3c4ded..03a4d6f984 100644 --- a/Lib/test/fork_wait.py +++ b/Lib/test/fork_wait.py @@ -9,7 +9,7 @@ On some systems (e.g. Solaris without posix threads) we find that all active threads survive in the child after a fork(); this is an error. """ -import os, sys, time, thread, unittest +import os, sys, time, _thread, unittest LONGSLEEP = 2 SHORTSLEEP = 0.5 @@ -43,7 +43,7 @@ class ForkWait(unittest.TestCase): def test_wait(self): for i in range(NUM_THREADS): - thread.start_new(self.f, (i,)) + _thread.start_new(self.f, (i,)) time.sleep(LONGSLEEP) -- cgit v1.2.1