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 eb8597b commit 67eb545Copy full SHA for 67eb545
1 file changed
distributed/shuffle/tests/test_memory_buffer.py
@@ -2,6 +2,7 @@
2
3
import pytest
4
5
+from distributed.shuffle._exceptions import DataUnavailable
6
from distributed.shuffle._memory import MemoryShardsBuffer
7
from distributed.utils_test import gen_test
8
@@ -21,7 +22,7 @@ async def test_basic():
21
22
x = mf.read("x")
23
y = mf.read("y")
24
- with pytest.raises(KeyError):
25
+ with pytest.raises(DataUnavailable):
26
mf.read("z")
27
28
assert x == [b"0" * 1000] * 2
@@ -42,7 +43,7 @@ async def test_read_before_flush():
42
43
44
await mf.flush()
45
assert mf.read("1") == [b"foo"]
46
47
mf.read("2")
48
49
0 commit comments