We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c077eed commit dc31427Copy full SHA for dc31427
1 file changed
tests/runners.py
@@ -539,6 +539,16 @@ def writes_and_flushes_to_stderr(self):
539
err.write.assert_called_once_with("whatever")
540
err.flush.assert_called_once_with()
541
542
+ def handles_incremental_decoding(self):
543
+ # 𠜎 is 4 bytes in utf-8
544
+ expected_out = "𠜎" * 50
545
+ runner = self._runner(out=expected_out)
546
+ # Make sure every read returns a partial character.
547
+ runner.read_chunk_size = 3
548
+ out = StringIO()
549
+ runner.run(_, out_stream=out)
550
+ assert out.getvalue() == expected_out
551
+
552
class input_stream_handling:
553
# NOTE: actual autoresponder tests are elsewhere. These just test that
554
# stdin works normally & can be overridden.
0 commit comments