Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b870aa1

Browse files
committed
we're always going to have gc
1 parent 964561b commit b870aa1

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

Lib/test/test_subprocess.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@
1313
import warnings
1414
import select
1515
import shutil
16-
try:
17-
import gc
18-
except ImportError:
19-
gc = None
20-
16+
import gc
2117

2218
try:
2319
import resource
@@ -859,7 +855,6 @@ def raise_it():
859855
self.fail("Exception raised by preexec_fn did not make it "
860856
"to the parent process.")
861857

862-
@unittest.skipUnless(gc, "Requires a gc module.")
863858
def test_preexec_gc_module_failure(self):
864859
# This tests the code that disables garbage collection if the child
865860
# process will execute any Python.

0 commit comments

Comments
 (0)