Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_subprocess.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 | 0e5a96fc9422 |
| children | 8cc3ad8bf7c4 |
line wrap: on
line diff
--- a/Lib/test/test_subprocess.py Tue May 20 07:26:11 2008 +0000 +++ b/Lib/test/test_subprocess.py Tue May 20 21:35:26 2008 +0000 @@ -1,5 +1,5 @@ import unittest -from test import test_support +from test import support import subprocess import sys import signal @@ -31,14 +31,14 @@ def setUp(self): # Try to minimize the number of children we have so this test # doesn't crash on some buildbots (Alphas in particular). - if hasattr(test_support, "reap_children"): - test_support.reap_children() + if hasattr(support, "reap_children"): + support.reap_children() def tearDown(self): # Try to minimize the number of children we have so this test # doesn't crash on some buildbots (Alphas in particular). - if hasattr(test_support, "reap_children"): - test_support.reap_children() + if hasattr(support, "reap_children"): + support.reap_children() def mkstemp(self): """wrapper for mkstemp, calling mktemp if mkstemp is not available""" @@ -392,8 +392,8 @@ def test_no_leaking(self): # Make sure we leak no resources - if (not hasattr(test_support, "is_resource_enabled") or - test_support.is_resource_enabled("subprocess") and not mswindows): + if (not hasattr(support, "is_resource_enabled") or + support.is_resource_enabled("subprocess") and not mswindows): max_handles = 1026 # too much for most UNIX systems else: max_handles = 65 @@ -703,9 +703,9 @@ self.assertNotEqual(p.wait(), 0) def test_main(): - test_support.run_unittest(ProcessTestCase) - if hasattr(test_support, "reap_children"): - test_support.reap_children() + support.run_unittest(ProcessTestCase) + if hasattr(support, "reap_children"): + support.reap_children() if __name__ == "__main__": unittest.main() # XXX test_main()
