10000 gh-121016: Add test for `PYTHON_BASIC_REPL` envioronment variable by devdanzin · Pull Request #121017 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply suggestions from code review to double-check that the tests are…
… working as expected.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
devdanzin and AlexWaygood authored Jun 26, 2024
commit 0f0ee3926db3de63989a4112b76e5478eaf54ab9
2 changes: 2 additions & 0 deletions Lib/test/test_pyrepl/test_pyrepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,13 +875,15 @@ def test_python_basic_repl(self):
self.skipTest("pyrepl not available")
self.assertEqual(exit_code, 0)
self.assertIn("True", output)
self.assertNotIn("False", output)
self.assertNotIn("Exception", output)
self.assertNotIn("Traceback", output)

env["PYTHON_BASIC_REPL"] = "1"
output, exit_code = self.run_repl(commands, env=env)
self.assertEqual(exit_code, 0)
self.assertIn("False", output)
self.assertNotIn("True", output)
self.assertNotIn("Exception", output)
self.assertNotIn("Traceback", output)

Expand Down
Loading
0