Skip to content

Commit 5ad76f3

Browse files
committed
Renamed the bundled pytest plugin from pytest_datatest to
_pytest_datatest. With the release of Pytest 3.6.0, pluggy--a pytest dependency that was recently updated--has been raising the following error: pluggy.PluginValidationError: unknown hook 'pytest_datatest' in plugin <module 'datatest._pytest_plugin' The related behavior was changed in Pytest 3.6.0 in response to a deprecation in pluggy (pytest-dev/pytest#3487). While it seems clear that pluggy supported this without problems (see pytest-dev/pluggy#91), I'm not sure if the latest Pytest behavior is intentional or a regression. But in either case, we want to make sure the above error is avoided.
1 parent a8a0789 commit 5ad76f3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

datatest/_pytest_plugin/__init__.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
try:
55
# Check if the external development version is installed.
66
import pytest_datatest as _
7-
from .pytest_datatest import version
8-
from .pytest_datatest import version_info
7+
from ._pytest_datatest import version
8+
from ._pytest_datatest import version_info
99
except ImportError:
1010
try:
1111
# If there's no external plugin, load the bundled version.
12-
from .pytest_datatest import pytest_runtest_makereport
13-
from .pytest_datatest import version
14-
from .pytest_datatest import version_info
12+
from ._pytest_datatest import pytest_runtest_makereport
13+
from ._pytest_datatest import version
14+
from ._pytest_datatest import version_info
1515
except ImportError:
1616
# If there's no Pytest support at all, set dummy version numbers.
1717
version = '0.0.0'

0 commit comments

Comments
 (0)