Import tensorflow

This commit is contained in:
2026-02-15 21:45:42 -08:00
parent f3e8b90764
commit c530630153
20524 changed files with 9017694 additions and 25 deletions
@@ -0,0 +1,22 @@
import h5py
import pytest
@pytest.fixture()
def writable_file(tmp_path):
with h5py.File(tmp_path / 'test.h5', 'w') as f:
yield f
def pytest_addoption(parser):
parser.addoption(
'--no-network', action='store_true', default=False, help='No network access'
)
def pytest_collection_modifyitems(config, items):
if config.getoption('--no-network'):
nonet = pytest.mark.skip(reason='No Internet')
for item in items:
if 'network' in item.keywords:
item.add_marker(nonet)