Skip to content

Don't keep exceptions alive after the test finishes - #188

Merged
nicoddemus merged 4 commits into
pytest-dev:masterfrom
fabioz:patch-2
Jul 12, 2018
Merged

nicoddemus merged 4 commits into
pytest-dev:masterfrom
fabioz:patch-2

Conversation

@fabioz

@fabioz fabioz commented Sep 24, 2017

Copy link
Copy Markdown
Contributor

Clearing the exceptions found during a test is needed to allow variables to be properly cleared.

Fixes #187

@coveralls

coveralls commented Sep 24, 2017 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.002%) to 99.254% when pulling 96c2ef7 on fabioz:patch-2 into fe8010b on pytest-dev:master.

@nicoddemus

Copy link
Copy Markdown
Member

Hi @fabioz, thanks for working on this!

While your fix seems correct, I think there's more to it. I was writing a test for your change (which I will push shortly) and notice that I couldn't make the test pass and discovered a bug in pytest itself, see pytest-dev/pytest#2798. After that is fixed we can probably make your PR pass.

fabioz and others added 2 commits July 12, 2018 17:57
Clearing the exceptions found during a test is needed to allow variables to be properly cleared.

Fixes pytest-dev#187
Unfortunately at this moment this is still failing because
of pytest-dev/pytest#2798, we will need to fix this in pytest
first before being able to merge this.
The test fails on Python 3.4. Decided to just xfail it for now
because I plan to drop Python 3.4 support soon anyway.
This will allow us to drop unsupported Python versions more easily
in the future
@nicoddemus
nicoddemus merged commit bfa6161 into pytest-dev:master Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants