diff options
Diffstat (limited to 'testenv')
-rw-r--r-- | testenv/tests/apps/cleanup/test_main.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testenv/tests/apps/cleanup/test_main.py b/testenv/tests/apps/cleanup/test_main.py index f9b74a06..72fba6d9 100644 --- a/testenv/tests/apps/cleanup/test_main.py +++ b/testenv/tests/apps/cleanup/test_main.py @@ -22,9 +22,10 @@ import os import multiprocessing -import multiprocessing.queues import time +from typing import Literal + import setproctitle from kvmd.apps.cleanup import main @@ -32,7 +33,8 @@ from kvmd.apps.cleanup import main # ===== def test_ok(tmpdir) -> None: # type: ignore - queue: multiprocessing.queues.Queue = multiprocessing.Queue() + _ = Literal # Makes liters happy + queue: "multiprocessing.Queue[Literal[True]]" = multiprocessing.Queue() ustreamer_sock_path = os.path.abspath(str(tmpdir.join("ustreamer-fake.sock"))) open(ustreamer_sock_path, "w").close() |