summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmmar Askar <ammar@ammaraskar.com>2021-07-07 21:47:50 (GMT)
committerGitHub <noreply@github.com>2021-07-07 21:47:50 (GMT)
commit052930f2416323ca0488b86baad7944d62e79e7f (patch)
tree5da3ea608ceed6523edd99cc8fc1a0555fd6118e
parent4823d9a51281ebbc8e8d82a0dd3edc7d13ea8ac7 (diff)
downloadcpython-052930f2416323ca0488b86baad7944d62e79e7f.zip
cpython-052930f2416323ca0488b86baad7944d62e79e7f.tar.gz
cpython-052930f2416323ca0488b86baad7944d62e79e7f.tar.bz2
Remove __cleanenv from PEP-657 tests (GH-27060)
-rw-r--r--Lib/test/test_code.py4
-rw-r--r--Lib/test/test_marshal.py3
-rw-r--r--Lib/test/test_traceback.py4
3 files changed, 5 insertions, 6 deletions
diff --git a/Lib/test/test_code.py b/Lib/test/test_code.py
index 988790b..2bdd7e7 100644
--- a/Lib/test/test_code.py
+++ b/Lib/test/test_code.py
@@ -384,7 +384,7 @@ class CodeTest(unittest.TestCase):
assert f.__code__.co_endlinetable is None
assert f.__code__.co_columntable is None
""")
- assert_python_ok('-X', 'no_debug_ranges', '-c', code, __cleanenv=True)
+ assert_python_ok('-X', 'no_debug_ranges', '-c', code)
def test_endline_and_columntable_none_when_no_debug_ranges_env(self):
# Same as above but using the environment variable opt out.
@@ -395,7 +395,7 @@ class CodeTest(unittest.TestCase):
assert f.__code__.co_endlinetable is None
assert f.__code__.co_columntable is None
""")
- assert_python_ok('-c', code, PYTHONNODEBUGRANGES='1', __cleanenv=True)
+ assert_python_ok('-c', code, PYTHONNODEBUGRANGES='1')
# co_positions behavior when info is missing.
diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py
index 152301f..d20b9d2 100644
--- a/Lib/test/test_marshal.py
+++ b/Lib/test/test_marshal.py
@@ -148,8 +148,7 @@ class CodeTestCase(unittest.TestCase):
marshal.dump(co, f)
assert_python_ok('-X', 'no_debug_ranges',
- '-c', code, os_helper.TESTFN,
- __cleanenv=True)
+ '-c', code, os_helper.TESTFN)
finally:
os_helper.unlink(os_helper.TESTFN)
diff --git a/Lib/test/test_traceback.py b/Lib/test/test_traceback.py
index 610ae3f..5681dfa 100644
--- a/Lib/test/test_traceback.py
+++ b/Lib/test/test_traceback.py
@@ -84,7 +84,7 @@ class TracebackCases(unittest.TestCase):
f.write("x = 1 / 0\n")
_, _, stderr = assert_python_failure(
- '-X', 'no_debug_ranges', TESTFN, __cleanenv=True)
+ '-X', 'no_debug_ranges', TESTFN)
lines = stderr.splitlines()
self.assertEqual(len(lines), 4)
@@ -108,7 +108,7 @@ class TracebackCases(unittest.TestCase):
f.write(code)
_, _, stderr = assert_python_ok(
- '-X', 'no_debug_ranges', TESTFN, __cleanenv=True)
+ '-X', 'no_debug_ranges', TESTFN)
lines = stderr.splitlines()
self.assertEqual(len(lines), 4)