]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381) ...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 5 Jun 2018 16:51:37 +0000 (19:51 +0300)
committerGitHub <noreply@github.com>
Tue, 5 Jun 2018 16:51:37 +0000 (19:51 +0300)
commit3014d6eb7f6ed8cc61b9b26fe1c4454760dc8621
tree531a6958e7540e50000df634d58f812b5dacbc77
parentbc3df70b266304f78ebe5eabead71cabd4738d12
[2.7] bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381) (GH-7432)

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