summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-06 21:38:54 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-06 21:38:54 (GMT)
commit50da60cc5bc82799b3636c18b18f24dd208823ec (patch)
tree899f6749f23d4d8655f9cb827d781531af6bb8ba /Lib/test
parentd11b68ab0834be4be76fca479cd4426eb45dfaec (diff)
downloadcpython-50da60cc5bc82799b3636c18b18f24dd208823ec.zip
cpython-50da60cc5bc82799b3636c18b18f24dd208823ec.tar.gz
cpython-50da60cc5bc82799b3636c18b18f24dd208823ec.tar.bz2
The final occurrences of exception slicing.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_file.py2
-rw-r--r--Lib/test/test_fileio.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_file.py b/Lib/test/test_file.py
index ab29932..5da2da9 100644
--- a/Lib/test/test_file.py
+++ b/Lib/test/test_file.py
@@ -157,7 +157,7 @@ class OtherFileTests(unittest.TestCase):
s = str(msg)
if s.find(TESTFN) != -1 or s.find(bad_mode) == -1:
self.fail("bad error message for invalid mode: %s" % s)
- # if msg[0] == 0, we're probably on Windows where there may be
+ # if msg.args[0] == 0, we're probably on Windows where there may be
# no obvious way to discover why open() failed.
else:
f.close()
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py
index 4028927..7f7332e 100644
--- a/Lib/test/test_fileio.py
+++ b/Lib/test/test_fileio.py
@@ -172,7 +172,7 @@ class OtherFileTests(unittest.TestCase):
s = str(msg)
if s.find(TESTFN) != -1 or s.find(bad_mode) == -1:
self.fail("bad error message for invalid mode: %s" % s)
- # if msg[0] == 0, we're probably on Windows where there may be
+ # if msg.args[0] == 0, we're probably on Windows where there may be
# no obvious way to discover why open() failed.
else:
f.close()