summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-09-03 13:32:24 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-09-03 13:32:24 (GMT)
commit9fd5374d4e7d75bfdaa862df15d0f3fbee5b18ca (patch)
tree54ef5a44a19832e93163e47396e9e352ff4ede91 /Lib/test/test_io.py
parent35c912f3a2910c744b569eac88c2c404c625368e (diff)
parentf6f3a3544783496301537bc5c946b58b0e5cbac8 (diff)
downloadcpython-9fd5374d4e7d75bfdaa862df15d0f3fbee5b18ca.zip
cpython-9fd5374d4e7d75bfdaa862df15d0f3fbee5b18ca.tar.gz
cpython-9fd5374d4e7d75bfdaa862df15d0f3fbee5b18ca.tar.bz2
merge 3.2 (#12878)
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r--Lib/test/test_io.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 1129484..2c502ab 100644
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -610,6 +610,17 @@ class IOTest(unittest.TestCase):
self.assertEqual(rawio.read(2), None)
self.assertEqual(rawio.read(2), b"")
+ def test_types_have_dict(self):
+ test = (
+ self.IOBase(),
+ self.RawIOBase(),
+ self.TextIOBase(),
+ self.StringIO(),
+ self.BytesIO()
+ )
+ for obj in test:
+ self.assertTrue(hasattr(obj, "__dict__"))
+
class CIOTest(IOTest):
def test_IOBase_finalize(self):