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"
  • Loading branch information
marmarek committed Sep 29, 2024
1 parent ae7aa11 commit 5b273d5
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 5b273d5

Please sign in to comment.