File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 10
10
11
11
from hypothesis .strategies import SearchStrategy
12
12
13
- from pytest import mark , fixture
13
+ from pytest import hookimpl , fixture
14
14
try :
15
15
import pytest_jsonreport # noqa
16
16
except ImportError :
@@ -44,7 +44,7 @@ def to_json_serializable(o):
44
44
45
45
return o
46
46
47
- @mark . optionalhook
47
+ @hookimpl ( optionalhook = True )
48
48
def pytest_metadata (metadata ):
49
49
"""
50
50
Additional global metadata for --json-report.
@@ -91,7 +91,7 @@ def finalizer():
91
91
92
92
request .addfinalizer (finalizer )
93
93
94
- @mark . optionalhook
94
+ @hookimpl ( optionalhook = True )
95
95
def pytest_json_modifyreport (json_report ):
96
96
# Deduplicate warnings. These duplicate warnings can cause the file size
97
97
# to become huge. For instance, a warning from np.bool which is emitted
You can’t perform that action at this time.
0 commit comments