Skip to content

Commit 1c0732c

Browse files
committed
Add NumPy version to print_versions and show them on every pytest run
1 parent c94a95f commit 1c0732c

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/blosc2/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,7 @@ def print_versions():
11181118
print("Main codec library versions:")
11191119
for clib in sorted(clib_versions.keys()):
11201120
print(f" {clib}: {clib_versions[clib]}")
1121+
print(f"NumPy version: {np.__version__}")
11211122
print(f"Python version: {sys.version}")
11221123
(sysname, _nodename, release, version, machine, processor) = platform.uname()
11231124
print(f"Platform: {sysname}-{release}-{machine} ({version})")

tests/conftest.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@
1212
import blosc2
1313

1414

15-
# This still needs to pass the '-s' flag to pytest to see the output but anyways
16-
@pytest.fixture(scope="session", autouse=True)
17-
def _setup_session():
18-
# This code will be executed before the test suite
19-
print()
15+
def pytest_configure(config):
2016
blosc2.print_versions()
2117

22-
2318
@pytest.fixture(scope="session")
2419
def c2sub_context():
2520
# You may use the URL and credentials for an already existing user

0 commit comments

Comments
 (0)