From 8e7db069186f9ff388e776788a97c2da7f77ef03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Wed, 25 Mar 2020 18:38:55 +0100 Subject: [PATCH] Remove Python 2 workarounds Python 2 support was discontinued and workaround for Python2 mock is no longer needed. --- qubesadmin/tests/app.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/qubesadmin/tests/app.py b/qubesadmin/tests/app.py index ed9942a..d3f6913 100644 --- a/qubesadmin/tests/app.py +++ b/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