diff options
author | Alfred Perlstein <alfred@fb.com> | 2021-05-05 10:33:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-05 19:33:17 +0200 |
commit | 565a31804c1139fe7886f38af3b3923653b0c1b3 (patch) | |
tree | 51668e21735777de13b878981d6d941017038316 /Lib/http/client.py | |
parent | cf86996a8e5965ff587040d0c2831c3132081a21 (diff) | |
download | cpython-git-565a31804c1139fe7886f38af3b3923653b0c1b3.tar.gz |
bpo-35753: Fix crash in doctest with unwrap-able functions (#22981)
Ignore objects that inspect.unwrap throws due to
too many wrappers. This is a very rare case, however
it can easily be surfaced when a module under doctest
imports unitest.mock.call into its namespace.
We simply skip any object that throws this exception.
This should handle the majority of cases.
Diffstat (limited to 'Lib/http/client.py')
0 files changed, 0 insertions, 0 deletions