commit | e139688d34cc12b23d3a310f10d4f440f75f7d08 | [log] [tgz] |
---|---|---|
author | Facundo Batista <facundobatista@gmail.com> | Sun Feb 17 18:59:29 2008 +0000 |
committer | Facundo Batista <facundobatista@gmail.com> | Sun Feb 17 18:59:29 2008 +0000 |
tree | 490a12e1246ba8a0aea3b92b9bd4fc8633965480 | |
parent | f88a077f69892c80e1ecf0ac8c0ba3d981dc4ff8 [diff] [blame] |
Issue 2112. mmap does not raises EnvironmentError no more, but a subclass of it. Thanks John Lenton.
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 @@ 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)