Skip to content

Remove reference to traceback object in _TestInfo.err Issue #105 #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

buster3
Copy link

@buster3 buster3 commented Dec 2, 2015

Hopefully a correct fix this time.

Issue #105: I still think it is a bug to be fixed. Thanks for the hit with the traceback object, dnozay. A reference to the traceback object is hold in _TestInfo.err. Remove this reference to get the wanted destruction behavior.

self.err = err
self.test_exception_name = None
self.test_exception_message = None
if self.outcome != _TestInfo.SUCCESS:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if err ?

@dnozay
Copy link
Member

dnozay commented Dec 2, 2015

Please add a testcase checking for those references; e.g. using sys.getrefcount(object). Please also squash the first 2 commits. Thank you.

@dnozay
Copy link
Member

dnozay commented Dec 4, 2015

obsolete - see #108

@dnozay dnozay closed this Dec 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants