From: Benjamin Peterson Date: Wed, 29 Apr 2009 22:00:44 +0000 (+0000) Subject: fix test__all__ X-Git-Tag: v3.1b1~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a52a9cfcb1add1be7be4c0b5aa9aa43c25a57e0;p=thirdparty%2FPython%2Fcpython.git fix test__all__ --- diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 34b6d0909e6d..a8c878eadfb7 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -2089,7 +2089,7 @@ class MiscIOTest(unittest.TestCase): self.assertTrue(obj is not None, name) if name == "open": continue - elif "error" in name.lower(): + elif "error" in name.lower() or name == "UnsupportedOperation": self.assertTrue(issubclass(obj, Exception), name) elif not name.startswith("SEEK_"): self.assertTrue(issubclass(obj, self.IOBase))