3131
3232runner = typer_testing .CliRunner ()
3333
34- NUMCODECS_USER_WARNING = "Numcodecs codecs are not in the Zarr version 3 specification and may not be supported by other zarr implementations."
35-
3634
3735def test_migrate_array (local_store : LocalStore ) -> None :
3836 shape = (10 , 10 )
@@ -315,7 +313,6 @@ def test_migrate_compressor(
315313 assert np .all (zarr_array [:] == 1 )
316314
317315
318- @pytest .mark .filterwarnings (f"ignore:{ NUMCODECS_USER_WARNING } :UserWarning" )
319316def test_migrate_numcodecs_compressor (local_store : LocalStore ) -> None :
320317 """Test migration of a numcodecs compressor without a zarr.codecs equivalent."""
321318
@@ -359,7 +356,6 @@ def test_migrate_numcodecs_compressor(local_store: LocalStore) -> None:
359356 assert np .all (zarr_array [:] == 1 )
360357
361358
362- @pytest .mark .filterwarnings (f"ignore:{ NUMCODECS_USER_WARNING } :UserWarning" )
363359def test_migrate_filter (local_store : LocalStore ) -> None :
364360 filter_v2 = numcodecs .Delta (dtype = "<u2" , astype = "<u2" )
365361 filter_v3 = Delta (dtype = "<u2" , astype = "<u2" )
@@ -523,8 +519,7 @@ def test_migrate_incorrect_filter(local_store: LocalStore) -> None:
523519 fill_value = 0 ,
524520 )
525521
526- with pytest .warns (UserWarning , match = NUMCODECS_USER_WARNING ):
527- result = runner .invoke (cli .app , ["migrate" , "v3" , str (local_store .root )])
522+ result = runner .invoke (cli .app , ["migrate" , "v3" , str (local_store .root )])
528523
529524 assert result .exit_code == 1
530525 assert isinstance (result .exception , TypeError )
@@ -547,8 +542,7 @@ def test_migrate_incorrect_compressor(local_store: LocalStore) -> None:
547542 fill_value = 0 ,
548543 )
549544
550- with pytest .warns (UserWarning , match = NUMCODECS_USER_WARNING ):
551- result = runner .invoke (cli .app , ["migrate" , "v3" , str (local_store .root )])
545+ result = runner .invoke (cli .app , ["migrate" , "v3" , str (local_store .root )])
552546
553547 assert result .exit_code == 1
554548 assert isinstance (result .exception , TypeError )
0 commit comments