Merge pull request #3239 from gokcegrbl/GH-3227

Comment on bare except usage in _compat.py
This commit is contained in:
David Lord 2019-05-31 12:56:43 -04:00 committed by GitHub
commit 94e057224c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,6 +98,8 @@ if hasattr(sys, "pypy_version_info"):
with _Mgr():
raise AssertionError()
except:
# We intentionally use a bare except here. See the comment above
# regarding a pypy bug as to why.
raise
except TypeError:
BROKEN_PYPY_CTXMGR_EXIT = True