diff options
author | Facundo Batista <facundobatista@gmail.com> | 2008-02-17 18:59:29 (GMT) |
---|---|---|
committer | Facundo Batista <facundobatista@gmail.com> | 2008-02-17 18:59:29 (GMT) |
commit | e139688d34cc12b23d3a310f10d4f440f75f7d08 (patch) | |
tree | 490a12e1246ba8a0aea3b92b9bd4fc8633965480 /Lib/test/test_mmap.py | |
parent | f88a077f69892c80e1ecf0ac8c0ba3d981dc4ff8 (diff) | |
download | cpython-e139688d34cc12b23d3a310f10d4f440f75f7d08.zip cpython-e139688d34cc12b23d3a310f10d4f440f75f7d08.tar.gz cpython-e139688d34cc12b23d3a310f10d4f440f75f7d08.tar.bz2 |
Issue 2112. mmap does not raises EnvironmentError no more, but
a subclass of it. Thanks John Lenton.
Diffstat (limited to 'Lib/test/test_mmap.py')
-rw-r--r-- | Lib/test/test_mmap.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index 8a145cf..49ec78b 100644 --- a/Lib/test/test_mmap.py +++ b/Lib/test/test_mmap.py @@ -436,6 +436,11 @@ class MmapTests(unittest.TestCase): self.assertRaises(TypeError, m.write, "foo") + def test_error(self): + self.assert_(issubclass(mmap.error, EnvironmentError)) + self.assert_("mmap.error" in str(mmap.error)) + + def test_main(): run_unittest(MmapTests) |