summaryrefslogtreecommitdiffstats
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@fb.com>2021-05-05 17:33:17 (GMT)
committerGitHub <noreply@github.com>2021-05-05 17:33:17 (GMT)
commit565a31804c1139fe7886f38af3b3923653b0c1b3 (patch)
tree51668e21735777de13b878981d6d941017038316 /Python/fileutils.c
parentcf86996a8e5965ff587040d0c2831c3132081a21 (diff)
downloadcpython-565a31804c1139fe7886f38af3b3923653b0c1b3.zip
cpython-565a31804c1139fe7886f38af3b3923653b0c1b3.tar.gz
cpython-565a31804c1139fe7886f38af3b3923653b0c1b3.tar.bz2
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 'Python/fileutils.c')
0 files changed, 0 insertions, 0 deletions