def test_env_var_enabled_at_startup(self):
    code = 'import tracemalloc; print(tracemalloc.is_tracing())'
    (ok, stdout, stderr) = assert_python_ok('-c', code, PYTHONTRACEMALLOC='1')
    stdout = stdout.rstrip()
    self.assertEqual(stdout, b'True')
def test_env_var_enabled_at_startup(self):
    code = 'import tracemalloc; print(tracemalloc.is_tracing())'
    (ok, stdout, stderr) = assert_python_ok('-c', code, PYTHONTRACEMALLOC='1')
    stdout = stdout.rstrip()
    self.assertEqual(stdout, b'True')