Merge pull request #3234 from tomowind/issue_3225

#3225: document "del tb"
This commit is contained in:
David Lord 2019-05-31 10:58:44 -04:00 committed by GitHub
commit 14e9291380
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,6 +132,8 @@ def _called_with_wrong_args(factory):
# didn't reach the factory
return True
finally:
# explicitly delete tb as it is circular referenced
# https://docs.python.org/2/library/sys.html#sys.exc_info
del tb