(self)
| 398 | self.assertEqual(data, b'x', "text %s not unbuffered" % stream) |
| 399 | |
| 400 | def test_unbuffered_input(self): |
| 401 | # sys.stdin still works with '-u' |
| 402 | code = ("import sys; sys.stdout.write(sys.stdin.read(1))") |
| 403 | p = spawn_python('-u', '-c', code) |
| 404 | p.stdin.write(b'x') |
| 405 | p.stdin.flush() |
| 406 | data, rc = _kill_python_and_exit_code(p) |
| 407 | self.assertEqual(rc, 0) |
| 408 | self.assertStartsWith(data, b'x') |
| 409 | |
| 410 | def test_large_PYTHONPATH(self): |
| 411 | path1 = "ABCDE" * 100 |
nothing calls this directly
no test coverage detected