summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fileio.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-12-29 18:02:28 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-12-29 18:02:28 (GMT)
commit1efc23cc35e0224de9831362f0a6c6bc1e606948 (patch)
tree179b49862b68a491dd5dae9ab3bab62b588db426 /Lib/test/test_fileio.py
parent0b76601b6e63dfc7a9f29c8a5b53864081781766 (diff)
downloadcpython-1efc23cc35e0224de9831362f0a6c6bc1e606948.zip
cpython-1efc23cc35e0224de9831362f0a6c6bc1e606948.tar.gz
cpython-1efc23cc35e0224de9831362f0a6c6bc1e606948.tar.bz2
Merged revisions 68016 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r68016 | benjamin.peterson | 2008-12-29 11:56:58 -0600 (Mon, 29 Dec 2008) | 1 line #4764 in io.open, set IOError.filename when trying to open a directory on POSIX platforms ........
Diffstat (limited to 'Lib/test/test_fileio.py')
-rw-r--r--Lib/test/test_fileio.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py
index 80de93d..817103e 100644
--- a/Lib/test/test_fileio.py
+++ b/Lib/test/test_fileio.py
@@ -108,6 +108,7 @@ class AutoFileTests(unittest.TestCase):
_fileio._FileIO('.', 'r')
except IOError as e:
self.assertNotEqual(e.errno, 0)
+ self.assertEqual(e.filename, ".")
else:
self.fail("Should have raised IOError")