[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1064132: libabigail: please migrate away from old deprecated python3-mock



Source: libabigail
Version: 2.4-2
Severity: normal

"Mock" was a standalone library that was merged years ago
in the standard Python library as unittest.mock.

python3-mock is deprecated and slowly being removed from Debian.

Please consider this change.

Greetings,


diff --git a/debian/control b/debian/control
index 4bc2090..4a5a3ed 100644
--- a/debian/control
+++ b/debian/control
@@ -16,7 +16,7 @@ Build-Depends: debhelper (>= 11),
   cpio, rpm2cpio,
   valgrind [amd64 arm64 armhf i386 mips mips64el mipsel powerpc ppc64 ppc64el s390x],
   python3,
-  python3-xdg, python3-rpm, python3-mock,
+  python3-xdg, python3-rpm,
   rpm,
 Build-Conflicts: libzip-dev
 Standards-Version: 4.6.2
diff --git a/tests/mockfedabipkgdiff.in b/tests/mockfedabipkgdiff.in
index 1e56266..863cf7f 100644
--- a/tests/mockfedabipkgdiff.in
+++ b/tests/mockfedabipkgdiff.in
@@ -42,7 +42,7 @@ import tempfile
 import six
 
 try:
-    from mock import patch
+    from unittest.mock import patch
 except ImportError:
     import sys
     six.print_('mock is required to run tests. Please install before running'


Reply to: