]> granicus.if.org Git - python/commitdiff
we're always going to have gc
authorBenjamin Peterson <benjamin@python.org>
Sat, 10 Dec 2011 17:44:25 +0000 (12:44 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sat, 10 Dec 2011 17:44:25 +0000 (12:44 -0500)
Lib/test/test_subprocess.py

index c3eae9a908a821ca2ee572210a9ef3933e67fd8b..3e17a29b0afb2184c9d0d617bd4a7a9f407b8177 100644 (file)
@@ -13,11 +13,7 @@ import sysconfig
 import warnings
 import select
 import shutil
-try:
-    import gc
-except ImportError:
-    gc = None
-
+import gc
 
 try:
     import resource
@@ -859,7 +855,6 @@ class POSIXProcessTestCase(BaseTestCase):
             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.