We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3de91be commit ef85383Copy full SHA for ef85383
tests/operations/test_cache.py
@@ -71,6 +71,14 @@ def test_hash_int():
71
assert result_hash == int_hash
72
73
74
+def test_hash_int_overflow():
75
+
76
+ emsarray.operations.cache.hash_int(hashlib.sha1(), 2 ** 31 - 5)
77
78
+ with pytest.raises(OverflowError):
79
+ emsarray.operations.cache.hash_int(hashlib.sha1(), 2 ** 31)
80
81
82
def test_cache_key_cfgrid1d(datasets: pathlib.Path):
83
dataset_cf = emsarray.open_dataset(datasets / 'cfgrid1d.nc')
84
0 commit comments