gh-121016: Add test for PYTHON_BASIC_REPL envioronment variable (#121017)

This commit is contained in:
devdanzin 2024-06-26 07:39:07 -03:00 committed by GitHub
parent ef28f6df42
commit 9e45fd9858
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 32 additions and 1 deletions

View file

@ -969,7 +969,7 @@ class CmdLineTest(unittest.TestCase):
self.assertIn(expected.encode(), out)
def test_python_basic_repl(self):
# Currently this only tests that the env var is set
# Currently this only tests that the env var is set. See test_pyrepl.test_python_basic_repl.
code = "import os; print('PYTHON_BASIC_REPL' in os.environ)"
expected = "True"
rc, out, err = assert_python_ok('-c', code, PYTHON_BASIC_REPL='1')