diff options
author | Devaev Maxim <[email protected]> | 2019-09-12 02:13:52 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-09-12 02:13:52 +0300 |
commit | 6ce9f4c7a970a01f9feca77eb6156d6fadb91202 (patch) | |
tree | 5c7b4b53979138128cc0d7e0b36e95ef0c3dbf47 /testenv/tests | |
parent | 8214a20d4af3fdb59bb35bd8f83d3d9977de8f35 (diff) |
separate region exceptions
Diffstat (limited to 'testenv/tests')
-rw-r--r-- | testenv/tests/test_aioregion.py | 6 |
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) |