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.
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.
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)
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)
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)