fix test__all__
authorBenjamin Peterson <benjamin@python.org>
Wed, 29 Apr 2009 22:00:44 +0000 (22:00 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 29 Apr 2009 22:00:44 +0000 (22:00 +0000)
Lib/test/test_io.py

index 34b6d0909e6d379b70d8e167868a4edeb0d53aca..a8c878eadfb734303cc5503d2b87083dfaf405bf 100644 (file)
@@ -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))