summaryrefslogtreecommitdiff
path: root/testenv
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-12 02:13:52 +0300
committerDevaev Maxim <[email protected]>2019-09-12 02:13:52 +0300
commit6ce9f4c7a970a01f9feca77eb6156d6fadb91202 (patch)
tree5c7b4b53979138128cc0d7e0b36e95ef0c3dbf47 /testenv
parent8214a20d4af3fdb59bb35bd8f83d3d9977de8f35 (diff)
separate region exceptions
Diffstat (limited to 'testenv')
-rw-r--r--testenv/tests/test_aioregion.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/testenv/tests/test_aioregion.py b/testenv/tests/test_aioregion.py
index 601f5280..4448bc54 100644
--- a/testenv/tests/test_aioregion.py
+++ b/testenv/tests/test_aioregion.py
@@ -24,11 +24,15 @@ import asyncio
import pytest
-from kvmd.aioregion import RegionIsBusyError
from kvmd.aioregion import AioExclusiveRegion
# =====
+class RegionIsBusyError(Exception):
+ pass
+
+
+# =====
@pytest.mark.asyncio
async def test_ok__access_one() -> None:
region = AioExclusiveRegion(RegionIsBusyError)