Merge pull request #3565 from nicoddemus/xfail-test-request-garbage

Attempt to fix test_request_garbage on Windows
This commit is contained in:
Bruno Oliveira 2018-06-11 15:23:47 -03:00 committed by GitHub
commit 04b65cfba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -630,7 +630,7 @@ class TestRequestBasic(object):
""" """
import sys import sys
import pytest import pytest
from _pytest.compat import safe_str from _pytest.fixtures import PseudoFixtureDef
import gc import gc
@pytest.fixture(autouse=True) @pytest.fixture(autouse=True)
@ -647,7 +647,7 @@ class TestRequestBasic(object):
gc.collect() gc.collect()
leaked_types = sum(1 for _ in gc.garbage leaked_types = sum(1 for _ in gc.garbage
if 'PseudoFixtureDef' in safe_str(_)) if isinstance(_, PseudoFixtureDef))
gc.garbage[:] = [] gc.garbage[:] = []