Commit 37b3b90b 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 85e729ec
...@@ -143,6 +143,9 @@ class CmdLineTest(unittest.TestCase): ...@@ -143,6 +143,9 @@ class CmdLineTest(unittest.TestCase):
self.assertIn(expected, out) self.assertIn(expected, out)
def test_stdin_loader(self): 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() p = spawn_python()
try: try:
p.stdin.write(b"print(__loader__)\n") 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