File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 99import xarray as xr
1010from xarray .core import formatting
1111
12- from . import (
13- requires_netCDF4 ,
14- requires_dask ,
15- )
12+ from . import requires_dask , requires_netCDF4
1613
1714
1815class TestFormatting :
@@ -430,12 +427,13 @@ def test_array_scalar_format(self) -> None:
430427 assert "unsupported format string passed to" in str (excinfo .value )
431428
432429 # also check for dask
433- var = var .chunk (chunks = {' dim_0' : 1 })
430+ var = var .chunk (chunks = {" dim_0" : 1 })
434431 assert var .__format__ ("" ) == "[0.1 0.2]"
435432 with pytest .raises (TypeError ) as excinfo :
436433 var .__format__ (".2f" )
437434 assert "unsupported format string passed to" in str (excinfo .value )
438435
436+
439437def test_inline_variable_array_repr_custom_repr () -> None :
440438 class CustomArray :
441439 def __init__ (self , value , attr ):
You can’t perform that action at this time.
0 commit comments