summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-11-03 22:34:57 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-11-03 22:34:57 (GMT)
commit81e92e582e06481f37a7ce1d23bd251316c58383 (patch)
tree2ad4c9bf2a4d9c300f4b17ae5c095dd66a156378 /Lib/test/test_io.py
parentaccb38c74fb66ab6cfbfd35af05892efb1946d08 (diff)
downloadcpython-81e92e582e06481f37a7ce1d23bd251316c58383.zip
cpython-81e92e582e06481f37a7ce1d23bd251316c58383.tar.gz
cpython-81e92e582e06481f37a7ce1d23bd251316c58383.tar.bz2
move a FileIO test to test_fileio
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r--Lib/test/test_io.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 08a524f..9ef2a81 100644
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -1236,13 +1236,6 @@ class MiscIOTest(unittest.TestCase):
else:
self.assert_(issubclass(obj, io.IOBase))
- def test_fileio_warnings(self):
- with test_support.check_warnings() as w:
- self.assertEqual(w.warnings, [])
- self.assertRaises(TypeError, io.FileIO, [])
- self.assertEqual(w.warnings, [])
- self.assertRaises(ValueError, io.FileIO, "/some/invalid/name", "rt")
- self.assertEqual(w.warnings, [])
def test_main():
test_support.run_unittest(IOTest, BytesIOTest, StringIOTest,