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 1010
1111from hypothesis .strategies import SearchStrategy
1212
13- from pytest import mark , fixture
13+ from pytest import hookimpl , fixture
1414try :
1515 import pytest_jsonreport # noqa
1616except ImportError :
@@ -44,7 +44,7 @@ def to_json_serializable(o):
4444
4545 return o
4646
47- @mark . optionalhook
47+ @hookimpl ( optionalhook = True )
4848def pytest_metadata (metadata ):
4949 """
5050 Additional global metadata for --json-report.
@@ -91,7 +91,7 @@ def finalizer():
9191
9292 request .addfinalizer (finalizer )
9393
94- @mark . optionalhook
94+ @hookimpl ( optionalhook = True )
9595def pytest_json_modifyreport (json_report ):
9696 # Deduplicate warnings. These duplicate warnings can cause the file size
9797 # 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