Skip to content

Commit a7b844d

Browse files
Add greetings list on numcodecs import failure
1 parent b699d8f commit a7b844d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

zarr/tests/test_core.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,17 @@
2828
)
2929
from numcodecs.abc import Codec
3030
from numcodecs.compat import ensure_bytes, ensure_ndarray
31-
from numcodecs.tests.common import greetings
31+
32+
try:
33+
from numcodecs.tests.common import greetings
34+
except ModuleNotFoundError:
35+
greetings = [
36+
'¡Hola mundo!', 'Hej Världen!', 'Servus Woid!', 'Hei maailma!',
37+
'Xin chào thế giới', 'Njatjeta Botë!', 'Γεια σου κόσμε!',
38+
'こんにちは世界', '世界,你好!', 'Helló, világ!', 'Zdravo svete!',
39+
'เฮลโลเวิลด์'
40+
]
41+
3242
from numpy.testing import assert_array_almost_equal, assert_array_equal
3343

3444
import zarr

0 commit comments

Comments
 (0)