diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-04-02 01:13:40 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-04-02 01:13:40 (GMT) |
commit | bfb959404f01fafafd3e2bd5d0ee8539ba17246e (patch) | |
tree | 50e5cc8fbcf4472a7d9f25ebb05f23314c2db1df /Lib/test/test_io.py | |
parent | 8d5fd4ed5c0a9e48d7a0a154ebab3ef57f91c5a6 (diff) | |
download | cpython-bfb959404f01fafafd3e2bd5d0ee8539ba17246e.zip cpython-bfb959404f01fafafd3e2bd5d0ee8539ba17246e.tar.gz cpython-bfb959404f01fafafd3e2bd5d0ee8539ba17246e.tar.bz2 |
Merged revisions 71014 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71014 | benjamin.peterson | 2009-04-01 20:03:17 -0500 (Wed, 01 Apr 2009) | 1 line
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 53017f3..6658d78 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -1996,13 +1996,13 @@ class MiscIOTest(unittest.TestCase): def test___all__(self): for name in self.io.__all__: obj = getattr(self.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, self.IOBase), name) + self.assertTrue(issubclass(obj, Exception), name) + elif not name.startswith("SEEK_"): + self.assertTrue(issubclass(obj, self.IOBase)) def test_attributes(self): f = self.open(support.TESTFN, "wb", buffering=0) |