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:856–859  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

854 f.close()
855
856 def test_unicode_and_str_mixture(self) -> None:
857 f = capture.CaptureIO()
858 f.write("\u00f6")
859 pytest.raises(TypeError, f.write, b"hello")
860
861 def test_write_bytes_to_buffer(self) -> None:
862 """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