summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-22 19:56:03 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-22 19:56:03 (GMT)
commitd02fc48f67b140e8605a1c9e986f78c8bb8df531 (patch)
treea63dc32762330282265ba14bd3f1e9681e005ded /Lib
parent48c6293500ef40104c3046713a2df8e951a7251c (diff)
downloadcpython-d02fc48f67b140e8605a1c9e986f78c8bb8df531.zip
cpython-d02fc48f67b140e8605a1c9e986f78c8bb8df531.tar.gz
cpython-d02fc48f67b140e8605a1c9e986f78c8bb8df531.tar.bz2
Fix for #1087741 patch.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_mmap.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py
index 8cc8ded..91d6275 100644
--- a/Lib/test/test_mmap.py
+++ b/Lib/test/test_mmap.py
@@ -420,6 +420,13 @@ class MmapTests(unittest.TestCase):
except OSError:
pass
+ def test_subclass(self):
+ class anon_mmap(mmap.mmap):
+ def __new__(klass, *args, **kwargs):
+ return mmap.mmap.__new__(klass, -1, *args, **kwargs)
+ anon_mmap(PAGESIZE)
+
+
def test_main():
run_unittest(MmapTests)