diff options
author | Victor Stinner <vstinner@python.org> | 2021-04-29 08:26:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-29 08:26:53 (GMT) |
commit | b1f413e6cf63a1c5704fcb47f2095ef5db8970bb (patch) | |
tree | 5e27f461ac433e55d9e33bf40ed02a53c7b67374 /Lib | |
parent | 5bd0619533ed6587ce76402e9b0b118eb4d4dd09 (diff) | |
download | cpython-b1f413e6cf63a1c5704fcb47f2095ef5db8970bb.zip cpython-b1f413e6cf63a1c5704fcb47f2095ef5db8970bb.tar.gz cpython-b1f413e6cf63a1c5704fcb47f2095ef5db8970bb.tar.bz2 |
bpo-28254: Cleanup test_subprocess.test_preexec_gc_module_failure() (GH-25709)
Saving/restoring gc.disable and gc.isenabled is no longer needed.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_subprocess.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 27ccd3e..f0f0e6f 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -2148,8 +2148,6 @@ class POSIXProcessTestCase(BaseTestCase): # This tests the code that disables garbage collection if the child # process will execute any Python. enabled = gc.isenabled() - orig_gc_disable = gc.disable - orig_gc_isenabled = gc.isenabled try: gc.disable() self.assertFalse(gc.isenabled()) @@ -2164,8 +2162,6 @@ class POSIXProcessTestCase(BaseTestCase): preexec_fn=lambda: None) self.assertTrue(gc.isenabled(), "Popen left gc disabled.") finally: - gc.disable = orig_gc_disable - gc.isenabled = orig_gc_isenabled if not enabled: gc.disable() |