Skip to content
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

[2.7] bpo-37124: Fix reference leak in test_msilib (GH-13750) #14340

Merged
merged 1 commit into from Jun 24, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 24, 2019

(cherry picked from commit c0295db)

https://bugs.python.org/issue37124

@vstinner
Copy link
Member Author

vstinner commented Jun 24, 2019

Compared to the change in master, I also added:

        self.addCleanup(unlink, db_path)
        self.addCleanup(db.Close)

@vstinner
Copy link
Member Author

vstinner commented Jun 24, 2019

self.addCleanup(db.Close) doesn't work: AttributeError: '_msi.Database' object has no attribute 'Close'.

I removed:

        self.addCleanup(unlink, db_path)
        self.addCleanup(db.Close)

@vstinner vstinner merged commit 6cbff56 into python:2.7 Jun 24, 2019
@vstinner vstinner deleted the test_msilib27 branch Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants