mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-121016: Add test for PYTHON_BASIC_REPL
envioronment variable (#121017)
This commit is contained in:
parent
ef28f6df42
commit
9e45fd9858
3 changed files with 32 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue