From 5b273d5b878a6115dd38d100a1415a2c2549b1f1 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" --- qubes/tests/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qubes/tests/__init__.py b/qubes/tests/__init__.py index 0591fa57c..9ffeb4d05 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