]> 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:25:21 +0000 (06:25 -0700)
committerGitHub <noreply@github.com>
Tue, 5 Jun 2018 13:25:21 +0000 (06:25 -0700)
commitae55d29fe04ee1aeb1bcb2e9b84e5bc9d4ecb070
tree4fbcd9e2371f66a2f90ad553ab3c5f0f74f02442
parent0da3f412bc7f998c9db1309b288935eedc03d6d7
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