From 9c32f8a28c0e555537ee0c8236e099a6990dacbc Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Wed, 15 Aug 2018 16:33:44 +0200 Subject: Use unittest.mock from the stdlib It was added to the stdlib in py3.3 and we already require 3.5. --- tests/settings/test_manager.py | 3 +-- tests/settings/test_utils.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/settings') diff --git a/tests/settings/test_manager.py b/tests/settings/test_manager.py index 9b1cff34..aa2e1e8d 100644 --- a/tests/settings/test_manager.py +++ b/tests/settings/test_manager.py @@ -9,8 +9,7 @@ import re import tempfile import textwrap import unittest - -import mock +from unittest import mock from alot.settings.manager import SettingsManager from alot.settings.errors import ConfigError, NoMatchingAccount diff --git a/tests/settings/test_utils.py b/tests/settings/test_utils.py index 869054ce..65ee9537 100644 --- a/tests/settings/test_utils.py +++ b/tests/settings/test_utils.py @@ -5,8 +5,7 @@ """Tests for the alot.setting.utils module.""" import unittest - -import mock +from unittest import mock from alot.settings import utils -- cgit v1.2.3