diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-04-02 01:03:17 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-04-02 01:03:17 (GMT) |
commit | 3633c4f7d24d07b1610ed39080e4bce79fd332db (patch) | |
tree | c73bc28abf632e1b2bf089276c34a0031fd2ba91 /Lib/test/test_io.py | |
parent | 7b0f1540ea2729ae566dcf11d63c098888818aa7 (diff) | |
download | cpython-3633c4f7d24d07b1610ed39080e4bce79fd332db.zip cpython-3633c4f7d24d07b1610ed39080e4bce79fd332db.tar.gz cpython-3633c4f7d24d07b1610ed39080e4bce79fd332db.tar.bz2 |
handle SEEK_ constants in test_io
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r-- | Lib/test/test_io.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index f0b38b6..02533c9 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -1299,13 +1299,13 @@ class MiscIOTest(unittest.TestCase): def testImport__all__(self): for name in io.__all__: obj = getattr(io, name, None) - self.assert_(obj is not None, name) + self.assertTrue(obj is not None, name) if name == "open": continue elif "error" in name.lower(): - self.assert_(issubclass(obj, Exception), name) - else: - self.assert_(issubclass(obj, io.IOBase)) + self.assertTrue(issubclass(obj, Exception), name) + elif not name.startswith("SEEK_"): + self.assertTrue(issubclass(obj, io.IOBase)) def test_attributes(self): |