]> granicus.if.org Git - python/commit
bpo-5001, bpo-31169: Fix two uninformative asserts in multiprocessing/managers.py...
authorAllen W. Smith, Ph.D <drallensmith@users.noreply.github.com>
Sat, 12 Aug 2017 15:37:09 +0000 (10:37 -0500)
committerAntoine Pitrou <pitrou@free.fr>
Sat, 12 Aug 2017 15:37:09 +0000 (17:37 +0200)
commit48d9823a0ebde4dfab8bc154bb6df462fb2ee403
tree14fbb6daae62b2c83da9b7af1b309b8c64630ed0
parente664d7f89d2b9960d9049237136396e824795cac
bpo-5001, bpo-31169: Fix two uninformative asserts in multiprocessing/managers.py (#3078)

* Make error message more informative

Replace assertions in error-reporting code with more-informative version that doesn't cause confusion over where and what the error is.

* Additional clarification + get travis to check

* Change from SystemError to TypeError

As suggested in PR comment by @pitrou, changing from SystemError; TypeError appears appropriate.

* NEWS file installation; ACKS addition (will do my best to justify it by additional work)
Lib/multiprocessing/managers.py
Misc/ACKS
Misc/NEWS.d/next/Library/2017-08-12-09-25-55.bpo-5001.huQi2Y.rst [new file with mode: 0644]