File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 9
9
import xarray as xr
10
10
from xarray .core import formatting
11
11
12
- from . import (
13
- requires_netCDF4 ,
14
- requires_dask ,
15
- )
12
+ from . import requires_dask , requires_netCDF4
16
13
17
14
18
15
class TestFormatting :
@@ -430,12 +427,13 @@ def test_array_scalar_format(self) -> None:
430
427
assert "unsupported format string passed to" in str (excinfo .value )
431
428
432
429
# also check for dask
433
- var = var .chunk (chunks = {' dim_0' : 1 })
430
+ var = var .chunk (chunks = {" dim_0" : 1 })
434
431
assert var .__format__ ("" ) == "[0.1 0.2]"
435
432
with pytest .raises (TypeError ) as excinfo :
436
433
var .__format__ (".2f" )
437
434
assert "unsupported format string passed to" in str (excinfo .value )
438
435
436
+
439
437
def test_inline_variable_array_repr_custom_repr () -> None :
440
438
class CustomArray :
441
439
def __init__ (self , value , attr ):
You can’t perform that action at this time.
0 commit comments