Skip to content

Commit e25e93f

Browse files
committed
Make suite work again with latest pytest.
1 parent d29e951 commit e25e93f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_lazy_object_proxy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ class submod(lop_implementation):
8686

8787
@pytest.fixture(scope="function")
8888
def lazy_object_proxy(request, lop_subclass):
89-
if request.node.get_marker('xfail_subclass'):
89+
if request.node.get_closest_marker('xfail_subclass'):
9090
request.applymarker(pytest.mark.xfail(
9191
reason="This test can't work because subclassing disables certain "
9292
"features like __doc__ and __module__ proxying."
9393
))
94-
if request.node.get_marker('xfail_simple'):
94+
if request.node.get_closest_marker('xfail_simple'):
9595
request.applymarker(pytest.mark.xfail(
9696
reason="The lazy_object_proxy.simple.Proxy has some limitations."
9797
))

0 commit comments

Comments
 (0)