Skip to content

Commit

Permalink
test: fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschle committed Nov 9, 2024
1 parent 73e5c7c commit 296567b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies = [
"asdf",
"numpy",
"pandas",
# "scipy",
"scipy",
"tqdm",
"uhi",
]
Expand Down Expand Up @@ -69,7 +69,7 @@ test = [
"pytest-cov",
"pytest-runner",
"zfit>=0.20.0;python_version<'3.13'",
# 'hepstats[zfit];python_version<"3.13"',
# 'hepstats[zfit];python_version<"3.13"', # not working, why?
]
zfit = ["zfit>=0.20.0"]

Expand Down
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ def data_gen():
# TODO: manually ported, use pre-made: https://github.com/zfit/zfit-development/issues/73
@pytest.fixture(autouse=True)
def _setup_teardown():
import zfit
try:
import zfit
except ImportError:
return

old_chunksize = zfit.run.chunking.max_n_points
old_active = zfit.run.chunking.active
Expand Down

0 comments on commit 296567b

Please sign in to comment.