mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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 ........
This commit is contained in:
parent
0b76601b6e
commit
1efc23cc35
2 changed files with 5 additions and 4 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue