From 69ee11f57f855d33455593fd0105e71b0bd40b32 Mon Sep 17 00:00:00 2001 From: "benjamin.peterson" Date: Thu, 2 Apr 2009 01:13:40 +0000 Subject: [PATCH] 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 ........ git-svn-id: http://svn.python.org/projects/python/branches/py3k@71016 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Lib/test/test_io.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 53017f352a..6658d78f6c 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) -- 2.11.4.GIT