Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_thread.py @ 47201:9c930a32cebb
#2621 rename test.test_support to test.support
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Tue, 20 May 2008 21:35:26 +0000 |
| parents | 30c4e1ca8421 |
| children | 7fe3a8648ce2 |
line wrap: on
line diff
--- a/Lib/test/test_thread.py Tue May 20 07:26:11 2008 +0000 +++ b/Lib/test/test_thread.py Tue May 20 21:35:26 2008 +0000 @@ -1,7 +1,7 @@ import os import unittest import random -from test import test_support +from test import support import thread import time @@ -13,7 +13,7 @@ def verbose_print(arg): """Helper function for printing out debugging output.""" - if test_support.verbose: + if support.verbose: with _print_mutex: print(arg) @@ -159,7 +159,7 @@ self.done_mutex.release() def test_main(): - test_support.run_unittest(ThreadRunningTests, BarrierTest) + support.run_unittest(ThreadRunningTests, BarrierTest) if __name__ == "__main__": test_main()
