Commit a3fb9bcb authored by Nick Coghlan's avatar Nick Coghlan

Note why we can't write an automated test for the code path that brings up the...

Note why we can't write an automated test for the code path that brings up the REPL for a bare 'python' call
parent acd504b9
......@@ -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")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment