From 1c1623885f6f8f9e7be0e6d014401de261eb46fd Mon Sep 17 00:00:00 2001 From: holger krekel Date: Thu, 29 Apr 2010 10:50:20 +0200 Subject: [PATCH] fix a py3k related skip - py.io.TextIO on py3k should probably not allow to write bytes to it. --HG-- branch : trunk --- testing/io_/test_capture.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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