849db7c
From f41791d752a7a398b57f88e07bb2871ae533ca1c Mon Sep 17 00:00:00 2001
849db7c
From: Mike FABIAN <mfabian@redhat.com>
849db7c
Date: Tue, 2 Feb 2021 11:42:49 +0100
849db7c
Subject: [PATCH] =?UTF-8?q?Use=20=E2=80=9Cfrom=20unittest=20import=20mock?=
849db7c
 =?UTF-8?q?=E2=80=9D=20instead=20of=20just=20=E2=80=9Cimport=20mock?=
849db7c
 =?UTF-8?q?=E2=80=9D.?=
849db7c
MIME-Version: 1.0
849db7c
Content-Type: text/plain; charset=UTF-8
849db7c
Content-Transfer-Encoding: 8bit
849db7c
849db7c
Since Python 3.3, mock is part of unittest in the standard
849db7c
library. The third-party `mock` library is a backport for older Python
849db7c
versions.
849db7c
849db7c
This makes it possible to remove the “BuildRequires:  python3-mock”
849db7c
from the ibus-table.spec file.
849db7c
---
849db7c
 tests/test_it.py | 2 +-
849db7c
 1 file changed, 1 insertion(+), 1 deletion(-)
849db7c
849db7c
diff --git a/tests/test_it.py b/tests/test_it.py
849db7c
index a4b6ba6..cad55c1 100755
849db7c
--- a/tests/test_it.py
849db7c
+++ b/tests/test_it.py
849db7c
@@ -29,7 +29,7 @@ import logging
849db7c
 import time
849db7c
 import unittest
849db7c
 import importlib
849db7c
-import mock
849db7c
+from unittest import mock
849db7c
 
849db7c
 from gi import require_version
849db7c
 require_version('IBus', '1.0')
849db7c
-- 
849db7c
2.29.2
849db7c