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

Method test_unicode_and_str_mixture

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

Source from the content-addressed store, hash-verified

931 sio.close()
932
933 def test_unicode_and_str_mixture(self) -> None:
934 sio = io.StringIO()
935 f = capture.TeeCaptureIO(sio)
936 f.write("\u00f6")
937 with pytest.raises(TypeError):
938 f.write(b"hello") # type: ignore[arg-type]
939
940
941def test_dontreadfrominput() -> None:

Callers

nothing calls this directly

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected