Skip to content

Commit b8d5144

Browse files
committed
tests: replace py.builtin function by actual builtin
1 parent 3166e1f commit b8d5144

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sopel/tests/pytest_plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import re
99
import sys
1010

11-
import py
1211
import pytest
1312

1413
from sopel import bot, loader, plugins, trigger
@@ -34,7 +33,7 @@ def get_disable_setup():
3433
def disable_setup(request, monkeypatch):
3534
setup = getattr(request.module, "setup", None)
3635
isfixture = hasattr(setup, "_pytestfixturefunction")
37-
if setup is not None and not isfixture and py.builtin.callable(setup):
36+
if setup is not None and not isfixture and callable(setup):
3837
monkeypatch.setattr(
3938
setup,
4039
"_pytestfixturefunction",

0 commit comments

Comments
 (0)