Browse Source

Remove Python 2 workarounds

Python 2 support was discontinued and workaround
for Python2 mock is no longer needed.
Marta Marczykowska-Górecka 4 years ago
parent
commit
8e7db06918
1 changed files with 2 additions and 6 deletions
  1. 2 6
      qubesadmin/tests/app.py

+ 2 - 6
qubesadmin/tests/app.py

@@ -25,12 +25,8 @@ import unittest
 
 import multiprocessing
 
-try:
-    import unittest.mock as mock
-    from unittest.mock import call
-except ImportError:
-    import mock
-    from mock import call
+import unittest.mock as mock
+from unittest.mock import call
 
 import tempfile