]> granicus.if.org Git - python/commitdiff
Issue #22854: fileno() is always required in IOBase; remove test
authorMartin Panter <vadmium+py@gmail.com>
Thu, 31 Mar 2016 07:21:56 +0000 (07:21 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Thu, 31 Mar 2016 07:21:56 +0000 (07:21 +0000)
Also change BufferedReader.writable() and BufferedWriter.readable() to always
return False.

Lib/test/test_io.py

index 34760c9533ec7c3899c9a3fbbbbdf7a39876e35a..b7f6046038daff4db416c9eb7350acffc26bf83e 100644 (file)
@@ -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)