commit | 6a52a9cfcb1add1be7be4c0b5aa9aa43c25a57e0 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Wed Apr 29 22:00:44 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Wed Apr 29 22:00:44 2009 +0000 |
tree | 88c1d2e3e495003c70be777b80047c08144be663 | |
parent | a01a66e0c1228288f5e99faff9673db221406538 [diff] [blame] |
fix test__all__
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 34b6d09..a8c878e 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py
@@ -2089,7 +2089,7 @@ 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))