def test_env_var_invalid(self):
    for nframe in ((- 1), 0, (2 ** 30)):
        with self.subTest(nframe=nframe):
            with support.SuppressCrashReport():
                (ok, stdout, stderr) = assert_python_failure('-c', 'pass', PYTHONTRACEMALLOC=str(nframe))
                self.assertIn(b'PYTHONTRACEMALLOC: invalid number of frames', stderr)
def test_env_var_invalid(self):
    for nframe in ((- 1), 0, (2 ** 30)):
        with self.subTest(nframe=nframe):
            with support.SuppressCrashReport():
                (ok, stdout, stderr) = assert_python_failure('-c', 'pass', PYTHONTRACEMALLOC=str(nframe))
                self.assertIn(b'PYTHONTRACEMALLOC: invalid number of frames', stderr)