From: Martin Panter Date: Thu, 31 Mar 2016 07:21:56 +0000 (+0000) Subject: Issue #22854: fileno() is always required in IOBase; remove test X-Git-Tag: v2.7.12rc1~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68822a0d59db0f3b66225b05fdd4f1f5fa351987;p=thirdparty%2FPython%2Fcpython.git Issue #22854: fileno() is always required in IOBase; remove test Also change BufferedReader.writable() and BufferedWriter.readable() to always return False. --- diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 34760c9533ec..b7f6046038da 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -693,12 +693,6 @@ class CommonBufferedTests: self.assertEqual(42, bufio.fileno()) - @unittest.skip('test having existential crisis') - def test_no_fileno(self): - # XXX will we always have fileno() function? If so, kill - # this test. Else, write it. - pass - def test_invalid_args(self): rawio = self.MockRawIO() bufio = self.tp(rawio)