Skip to content

Commit

Permalink
Merge pull request #3565 from nicoddemus/xfail-test-request-garbage
Browse files Browse the repository at this point in the history
Attempt to fix test_request_garbage on Windows
  • Loading branch information
nicoddemus authored Jun 11, 2018
2 parents 61471df + 5ea647a commit 04b65cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/python/fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ def test_request_garbage(self, testdir):
"""
import sys
import pytest
from _pytest.compat import safe_str
from _pytest.fixtures import PseudoFixtureDef
import gc
@pytest.fixture(autouse=True)
Expand All @@ -647,7 +647,7 @@ def something(request):
gc.collect()
leaked_types = sum(1 for _ in gc.garbage
if 'PseudoFixtureDef' in safe_str(_))
if isinstance(_, PseudoFixtureDef))
gc.garbage[:] = []
Expand Down

0 comments on commit 04b65cf

Please sign in to comment.