File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -53,17 +53,18 @@ def test_storage(self, zarr_version):
53
53
def test_utf8_encoding (self , zarr_version ):
54
54
55
55
project_root = pathlib .Path (zarr .__file__ ).resolve ().parent .parent
56
- fixdir = project_root / "fixture" / "utf8attrs"
57
- if not fixdir .exists (): # pragma: no cover
56
+ fixdir = project_root / "fixture"
57
+ testdir = fixdir / "utf8attrs"
58
+ if not testdir .exists (): # pragma: no cover
58
59
# store the data - should be one-time operation
59
- fixdir .mkdir ()
60
- with (fixdir / ".zattrs" ).open ("w" , encoding = "utf-8" ) as f :
60
+ testdir .mkdir ()
61
+ with (testdir / ".zattrs" ).open ("w" , encoding = "utf-8" ) as f :
61
62
f .write ('{"foo": "た"}' )
62
- with (fixdir / ".zgroup" ).open ("w" , encoding = "utf-8" ) as f :
63
+ with (testdir / ".zgroup" ).open ("w" , encoding = "utf-8" ) as f :
63
64
f .write ("""{\n "zarr_format": 2\n }""" )
64
65
65
66
# fixture data
66
- fixture = group (store = DirectoryStore ('fixture' ))
67
+ fixture = group (store = DirectoryStore (str ( fixdir ) ))
67
68
assert fixture ['utf8attrs' ].attrs .asdict () == dict (foo = 'た' )
68
69
69
70
def test_get_set_del_contains (self , zarr_version ):
You can’t perform that action at this time.
0 commit comments