Skip to content

Commit

Permalink
tests: fix missing unittest.mock
Browse files Browse the repository at this point in the history
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: 151010d "Validate default_kernel global property on set"
(cherry picked from commit 5b273d5)
  • Loading branch information
marmarek committed Dec 8, 2024
1 parent 052a1b7 commit 187fe5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qubes/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import time
import traceback
import unittest
import unittest.mock
from distutils import spawn

import gc
Expand Down

0 comments on commit 187fe5d

Please sign in to comment.