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 :
@@ -435,12 +432,13 @@ def test_array_scalar_format(self) -> None:
435
432
assert "unsupported format string passed to" in str (excinfo .value )
436
433
437
434
# also check for dask
438
- var = var .chunk (chunks = {' dim_0' : 1 })
435
+ var = var .chunk (chunks = {" dim_0" : 1 })
439
436
assert var .__format__ ("" ) == "[0.1 0.2]"
440
437
with pytest .raises (TypeError ) as excinfo :
441
438
var .__format__ (".2f" )
442
439
assert "unsupported format string passed to" in str (excinfo .value )
443
440
441
+
444
442
def test_inline_variable_array_repr_custom_repr () -> None :
445
443
class CustomArray :
446
444
def __init__ (self , value , attr ):
You can’t perform that action at this time.
0 commit comments