def test_sys_xoptions_invalid(self):
    for nframe in ((- 1), 0, (2 ** 30)):
        with self.subTest(nframe=nframe):
            with support.SuppressCrashReport():
                args = ('-X', ('tracemalloc=%s' % nframe), '-c', 'pass')
                (ok, stdout, stderr) = assert_python_failure(*args)
                self.assertIn(b'-X tracemalloc=NFRAME: invalid number of frames', stderr)
def test_sys_xoptions_invalid(self):
    for nframe in ((- 1), 0, (2 ** 30)):
        with self.subTest(nframe=nframe):
            with support.SuppressCrashReport():
                args = ('-X', ('tracemalloc=%s' % nframe), '-c', 'pass')
                (ok, stdout, stderr) = assert_python_failure(*args)
                self.assertIn(b'-X tracemalloc=NFRAME: invalid number of frames', stderr)