diff options
Diffstat (limited to 'Lib/test/test_fileio.py')
-rw-r--r-- | Lib/test/test_fileio.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py index be2f781..5bad843 100644 --- a/Lib/test/test_fileio.py +++ b/Lib/test/test_fileio.py @@ -166,7 +166,7 @@ class OtherFileTests(unittest.TestCase): try: f = _fileio._FileIO(TESTFN, bad_mode) except ValueError as msg: - if msg.message != 0: + if msg.args[0] != 0: s = str(msg) if s.find(TESTFN) != -1 or s.find(bad_mode) == -1: self.fail("bad error message for invalid mode: %s" % s) |