diff options
Diffstat (limited to 'Lib/test/test_struct.py')
| -rw-r--r-- | Lib/test/test_struct.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index 22374d2..eb97a2c 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -489,7 +489,7 @@ class StructTest(unittest.TestCase):      def test_bool(self):          class ExplodingBool(object):              def __bool__(self): -                raise IOError +                raise OSError          for prefix in tuple("<>!=")+('',):              false = (), [], [], '', 0              true = [1], 'test', 5, -1, 0xffffffff+1, 0xffffffff/2 @@ -520,10 +520,10 @@ class StructTest(unittest.TestCase):              try:                  struct.pack(prefix + '?', ExplodingBool()) -            except IOError: +            except OSError:                  pass              else: -                self.fail("Expected IOError: struct.pack(%r, " +                self.fail("Expected OSError: struct.pack(%r, "                            "ExplodingBool())" % (prefix + '?'))          for c in [b'\x01', b'\x7f', b'\xff', b'\x0f', b'\xf0']: | 
