From 187fe5d8f31e9b84bb481154d535a732576e843f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 29 Sep 2024 18:07:13 +0200 Subject: [PATCH] tests: fix missing unittest.mock The unittest.mock module needs to be imported before use. It worked by coincidence for most unit tests, which do import it, but not for integration tests which mostly dont. Fixes: 151010d4 "Validate default_kernel global property on set" (cherry picked from commit 5b273d5b878a6115dd38d100a1415a2c2549b1f1) --- qubes/tests/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qubes/tests/__init__.py b/qubes/tests/__init__.py index 98605ab19..3d8d95a89 100644 --- a/qubes/tests/__init__.py +++ b/qubes/tests/__init__.py @@ -45,6 +45,7 @@ import time import traceback import unittest +import unittest.mock from distutils import spawn import gc