def test_env_limit(self):
    code = 'import tracemalloc; print(tracemalloc.get_traceback_limit())'
    (ok, stdout, stderr) = assert_python_ok('-c', code, PYTHONTRACEMALLOC='10')
    stdout = stdout.rstrip()
    self.assertEqual(stdout, b'10')
def test_env_limit(self):
    code = 'import tracemalloc; print(tracemalloc.get_traceback_limit())'
    (ok, stdout, stderr) = assert_python_ok('-c', code, PYTHONTRACEMALLOC='10')
    stdout = stdout.rstrip()
    self.assertEqual(stdout, b'10')