[Python-checkins] cpython (3.2): we're always going to have gc

benjamin.peterson python-checkins at python.org
Sat Dec 10 18:44:42 CET 2011


http://hg.python.org/cpython/rev/6040c248a199
changeset:   73925:6040c248a199
branch:      3.2
parent:      73923:245f6094ccba
user:        Benjamin Peterson <benjamin at python.org>
date:        Sat Dec 10 12:44:25 2011 -0500
summary:
  we're always going to have gc

files:
  Lib/test/test_subprocess.py |  7 +------
  1 files changed, 1 insertions(+), 6 deletions(-)


diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -13,11 +13,7 @@
 import warnings
 import select
 import shutil
-try:
-    import gc
-except ImportError:
-    gc = None
-
+import gc
 
 try:
     import resource
@@ -859,7 +855,6 @@
             self.fail("Exception raised by preexec_fn did not make it "
                       "to the parent process.")
 
-    @unittest.skipUnless(gc, "Requires a gc module.")
     def test_preexec_gc_module_failure(self):
         # This tests the code that disables garbage collection if the child
         # process will execute any Python.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list