3232
3333runner = typer_testing .CliRunner ()
3434
35- NUMCODECS_USER_WARNING = "Numcodecs codecs are not in the Zarr version 3 specification and may not be supported by other zarr implementations."
36-
3735
3836def test_migrate_array (local_store : LocalStore ) -> None :
3937 shape = (10 , 10 )
@@ -316,7 +314,6 @@ def test_migrate_compressor(
316314 assert np .all (zarr_array [:] == 1 )
317315
318316
319- @pytest .mark .filterwarnings (f"ignore:{ NUMCODECS_USER_WARNING } :UserWarning" )
320317def test_migrate_numcodecs_compressor (local_store : LocalStore ) -> None :
321318 """Test migration of a numcodecs compressor without a zarr.codecs equivalent."""
322319
@@ -360,7 +357,6 @@ def test_migrate_numcodecs_compressor(local_store: LocalStore) -> None:
360357 assert np .all (zarr_array [:] == 1 )
361358
362359
363- @pytest .mark .filterwarnings (f"ignore:{ NUMCODECS_USER_WARNING } :UserWarning" )
364360def test_migrate_filter (local_store : LocalStore ) -> None :
365361 filter_v2 = numcodecs .Delta (dtype = "<u2" , astype = "<u2" )
366362 filter_v3 = Delta (dtype = "<u2" , astype = "<u2" )
@@ -524,8 +520,7 @@ def test_migrate_incorrect_filter(local_store: LocalStore) -> None:
524520 fill_value = 0 ,
525521 )
526522
527- with pytest .warns (UserWarning , match = NUMCODECS_USER_WARNING ):
528- result = runner .invoke (cli .app , ["migrate" , "v3" , str (local_store .root )])
523+ result = runner .invoke (cli .app , ["migrate" , "v3" , str (local_store .root )])
529524
530525 assert result .exit_code == 1
531526 assert isinstance (result .exception , TypeError )
@@ -548,8 +543,7 @@ def test_migrate_incorrect_compressor(local_store: LocalStore) -> None:
548543 fill_value = 0 ,
549544 )
550545
551- with pytest .warns (UserWarning , match = NUMCODECS_USER_WARNING ):
552- result = runner .invoke (cli .app , ["migrate" , "v3" , str (local_store .root )])
546+ result = runner .invoke (cli .app , ["migrate" , "v3" , str (local_store .root )])
553547
554548 assert result .exit_code == 1
555549 assert isinstance (result .exception , TypeError )
0 commit comments