MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_unicode_and_str_mixture

Method test_unicode_and_str_mixture

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

Source from the content-addressed store, hash-verified

880 sio.close()
881
882 def test_unicode_and_str_mixture(self) -> None:
883 sio = io.StringIO()
884 f = capture.TeeCaptureIO(sio)
885 f.write("\u00f6")
886 pytest.raises(TypeError, f.write, b"hello")
887
888
889def test_dontreadfrominput() -> None:

Callers

nothing calls this directly

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected