Skip to content

Commit

Permalink
reset warnings before test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamman committed Apr 22, 2024
1 parent 8a13553 commit 834a3e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zarr/tests/test_storage_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import inspect
import os
import tempfile
import warnings

import numpy as np
import pytest
Expand Down Expand Up @@ -674,6 +675,10 @@ def test_top_level_imports():


def test_assert_zarr_v3_api_available_warns_once():
import zarr._storage.store

zarr._storage.store._has_warned_about_v3 = False
warnings.resetwarnings()
with pytest.warns() as record:
assert_zarr_v3_api_available()
assert_zarr_v3_api_available()
Expand Down

0 comments on commit 834a3e1

Please sign in to comment.