]> granicus.if.org Git - python/commit
bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 5 Jun 2018 13:21:04 +0000 (06:21 -0700)
committerGitHub <noreply@github.com>
Tue, 5 Jun 2018 13:21:04 +0000 (06:21 -0700)
commit631fe1fa423c42197d533103dcf349ca19baed0c
treeaa061c2e6ab4ffc0f8a2e0025fe8eba3dd6fd9bb
parent23b7ee205270320f836e93e411b28ac995cbabf1
bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)

Raise TypeError instead of SystemError for unsupported operations.
(cherry picked from commit e9e397605789b2a67b67558fbbe756b7b88934f5)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Lib/test/test_mmap.py
Misc/NEWS.d/next/Library/2018-06-03-22-41-59.bpo-33767.2e82g3.rst [new file with mode: 0644]
Modules/mmapmodule.c