We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfad34a commit fabdf47Copy full SHA for fabdf47
tests/test_experimental.py
@@ -1,5 +1,5 @@
1
import sys
2
-from importlib import import_module, reload
+from importlib import reload
3
from unittest import mock
4
5
import pytest
@@ -16,10 +16,7 @@ def test_missing_experimental_extra():
16
with mock.patch.dict(sys.modules):
17
sys.modules["numexpr"] = None
18
with pytest.raises(ModuleNotFoundError):
19
- if "pyhf.experimental.modifiers" in sys.modules:
20
- reload(sys.modules["pyhf.experimental.modifiers"])
21
- else:
22
- import_module("pyhf.experimental.modifiers")
+ reload(sys.modules["pyhf.experimental.modifiers"])
23
24
25
def test_add_custom_modifier(backend):
0 commit comments