]> granicus.if.org Git - python/commit
bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)
authorZackery Spytz <zspytz@gmail.com>
Tue, 5 Jun 2018 12:59:41 +0000 (06:59 -0600)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 5 Jun 2018 12:59:41 +0000 (15:59 +0300)
commite9e397605789b2a67b67558fbbe756b7b88934f5
tree4294134bac41e498ba9f7a889e8b4c8c3791d86a
parentaf1ec97a6d1dde68b2dc0ee9b78965eb219061a8
bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)

Raise TypeError instead of SystemError for unsupported operations.
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