From 4afa8955e5e1519b3655d12db990adff96856d53 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Fri, 26 Aug 2022 13:11:51 -0600 Subject: [PATCH] Fix the tests when --json-report is not used Fixes #138. --- reporting.py | 1 + 1 file changed, 1 insertion(+) diff --git a/reporting.py b/reporting.py index b15b3364..f7c7d6b9 100644 --- a/reporting.py +++ b/reporting.py @@ -91,6 +91,7 @@ def finalizer(): request.addfinalizer(finalizer) +@mark.optionalhook def pytest_json_modifyreport(json_report): # Deduplicate warnings. These duplicate warnings can cause the file size # to become huge. For instance, a warning from np.bool which is emitted