Skip to content

Commit

Permalink
Update test_gallery.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 authored Sep 16, 2024
1 parent f70f96f commit d9dd3bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ def _import_from_file(script):
_deprecation_warning_zarr_store = (
r"The NestedDirectoryStore is deprecated *"
)
_deprecation_warning_numpy = (
"__array__ implementation doesn't accept a copy keyword, so passing copy=False failed. "
"__array__ must implement 'dtype' and 'copy' keyword arguments."
)

def run_gallery_tests():
global TOTAL, FAILURES, ERRORS
Expand Down Expand Up @@ -149,6 +153,9 @@ def run_gallery_tests():
warnings.filterwarnings(
"ignore", message=_deprecation_warning_zarr_store, category=FutureWarning
)
warnings.filterwarnings(
"ignore", message=_deprecation_warning_numpy, category=DeprecationWarning
)
_import_from_file(script_abs)
except Exception:
print(traceback.format_exc())
Expand Down

0 comments on commit d9dd3bf

Please sign in to comment.