Skip to content

Commit dc6ae62

Browse files
committed
Use function-form of deprecated_call to comply with older pytest versions
1 parent 672a98b commit dc6ae62

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

testing/test_pluginmanager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,7 @@ def m(self, __multicall__, x):
345345
assert not __multicall__.hook_impls
346346
return 17
347347

348-
with pytest.deprecated_call():
349-
pm.register(P1())
348+
pytest.deprecated_call(pm.register, P1())
350349

351350

352351
def test_add_hookspecs_nohooks(pm):

0 commit comments

Comments
 (0)