MCPcopy
hub / github.com/pytest-dev/pytest / test_unicode_and_str_mixture

Method test_unicode_and_str_mixture

testing/test_capture.py:906–910  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

904 f.close()
905
906 def test_unicode_and_str_mixture(self) -> None:
907 f = capture.CaptureIO()
908 f.write("\u00f6")
909 with pytest.raises(TypeError):
910 f.write(b"hello") # type: ignore[arg-type]
911
912 def test_write_bytes_to_buffer(self) -> None:
913 """In python3, stdout / stderr are text io wrappers (exposing a buffer

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected