From 3f5a18e8d017a7961419b6e63022656b2b254957 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 21 Jan 2023 18:51:17 +0100 Subject: [PATCH] Remove unused import fallback on the 'mock' library --- test/test_yn.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/test_yn.py b/test/test_yn.py index c147710a2..b40b348e7 100644 --- a/test/test_yn.py +++ b/test/test_yn.py @@ -30,17 +30,10 @@ import sys import unittest +from unittest import mock from supybot import questions from supybot.test import SupyTestCase -try: - from unittest import mock # Python 3.3+ -except ImportError: - try: - import mock # Everything else, an external 'mock' library - except ImportError: - mock = None - # so complicated construction because I want to # gain the string 'y' instead of the character 'y' # the reason of usage this construction is to prove