diff --git a/testing/io_/test_capture.py b/testing/io_/test_capture.py index 2f44e6aea..7b03c4ae1 100644 --- a/testing/io_/test_capture.py +++ b/testing/io_/test_capture.py @@ -43,8 +43,7 @@ class TestTextIO: f = py.io.TextIO() if sys.version_info >= (3,0): f.write("\u00f6") - py.test.skip("3k IO beahviour?") - f.write(bytes("hello", 'UTF-8')) + py.test.raises(TypeError, "f.write(bytes('hello', 'UTF-8'))") else: f.write(unicode("\u00f6", 'UTF-8')) f.write("hello") # bytes