diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2012-07-15 08:24:42 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2012-07-15 08:24:42 (GMT) |
commit | 37b3b90b02183d072b1f4fa4de96f67eafb6f245 (patch) | |
tree | a82b0be66108da9fbc76775471ea180c339570d0 | |
parent | 85e729ec3b6708af956fb47ff4936521020ff5e5 (diff) | |
download | cpython-37b3b90b02183d072b1f4fa4de96f67eafb6f245.zip cpython-37b3b90b02183d072b1f4fa4de96f67eafb6f245.tar.gz cpython-37b3b90b02183d072b1f4fa4de96f67eafb6f245.tar.bz2 |
Note why we can't write an automated test for the code path that brings up the REPL for a bare 'python' call
-rw-r--r-- | Lib/test/test_cmd_line_script.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_cmd_line_script.py b/Lib/test/test_cmd_line_script.py index a08cabd..849abe2 100644 --- a/Lib/test/test_cmd_line_script.py +++ b/Lib/test/test_cmd_line_script.py @@ -143,6 +143,9 @@ class CmdLineTest(unittest.TestCase): self.assertIn(expected, out) def test_stdin_loader(self): + # Unfortunately, there's no way to automatically test the fully + # interactive REPL, since that code path only gets executed when + # stdin in an interactive tty. p = spawn_python() try: p.stdin.write(b"print(__loader__)\n") |