Skip to content

Commit 977dc48

Browse files
committed
Remove fixture which is no longer used
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
1 parent 6672ddc commit 977dc48

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

tests/unit/utils/test_platform.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,6 @@
2323
log = logging.getLogger(__name__)
2424

2525

26-
@pytest.fixture(autouse=True)
27-
def reset_lru_cache():
28-
for name in dir(pytestskipmarkers.utils.platform):
29-
if not name.startswith("is_"):
30-
continue
31-
func = getattr(pytestskipmarkers.utils.platform, name, None)
32-
if func:
33-
try:
34-
func.cache_clear()
35-
log.debug("Called %s.cache_clear()", func.__qualname__)
36-
except AttributeError:
37-
pass
38-
try:
39-
yield
40-
finally:
41-
for name in dir(pytestskipmarkers.utils.platform):
42-
if not name.startswith("is_"):
43-
continue
44-
func = getattr(pytestskipmarkers.utils.platform, name, None)
45-
if func:
46-
try:
47-
func.cache_clear()
48-
log.debug("Called %s.cache_clear()", func.__qualname__)
49-
except AttributeError:
50-
pass
51-
52-
5326
def test_is_linux():
5427
return_value = True
5528
with mock.patch("sys.platform", new_callable=mock.PropertyMock(return_value="linux")):

0 commit comments

Comments
 (0)