Article View: linux.debian.bugs.dist
Article #5006Bug#1154377: python-pykmip: please drop usage of python3-mock using provided patch
From: Alexandre Detiste
Date: Wed, 18 Nov 2026 18:40
Date: Wed, 18 Nov 2026 18:40
163 lines
6902 bytes
6902 bytes
This is a multi-part MIME message sent by reportbug.
--===============3716318796773223139==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Source: python-pykmip
Version: 0.10.0-11
Severity: normal
Hi Thomas,
This should be the very last package to patch for this.
Greetings
Alexandre
--===============3716318796773223139==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="remove_mock.patch"
--- a/kmip/tests/unit/core/objects/test_credentials.py
+++ b/kmip/tests/unit/core/objects/test_credentials.py
@@ -14,7 +14,7 @@
# under the License.
import enum
-import mock
+from unittest import mock
import testtools
from kmip import enums
--- a/kmip/tests/unit/core/test_config_helper.py
+++ b/kmip/tests/unit/core/test_config_helper.py
@@ -19,8 +19,8 @@
import ConfigParser as configparser
from testtools import TestCase
-from mock import MagicMock
-from mock import Mock
+from unittest.mock import MagicMock
+from unittest.mock import Mock
from kmip.core.config_helper import ConfigHelper
--- a/kmip/tests/unit/pie/test_client.py
+++ b/kmip/tests/unit/pie/test_client.py
@@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-import mock
+from unittest import mock
import six
import ssl
import testtools
--- a/kmip/tests/unit/services/server/auth/test_slugs.py
+++ b/kmip/tests/unit/services/server/auth/test_slugs.py
@@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-import mock
+from unittest import mock
import requests
import testtools
--- a/kmip/tests/unit/services/server/auth/test_utils.py
+++ b/kmip/tests/unit/services/server/auth/test_utils.py
@@ -19,7 +19,7 @@
from cryptography.hazmat.primitives.asymmetric import rsa
import datetime
-import mock
+from unittest import mock
import ssl
import testtools
--- a/kmip/tests/unit/services/server/crypto/test_engine.py
+++ b/kmip/tests/unit/services/server/crypto/test_engine.py
@@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-import mock
+from unittest import mock
import pytest
import testtools
--- a/kmip/tests/unit/services/server/test_config.py
+++ b/kmip/tests/unit/services/server/test_config.py
@@ -14,7 +14,7 @@
# under the License.
import logging
-import mock
+from unittest import mock
import six
from six.moves import configparser
--- a/kmip/tests/unit/services/server/test_engine.py
+++ b/kmip/tests/unit/services/server/test_engine.py
@@ -14,7 +14,7 @@
# under the License.
import six
-import mock
+from unittest import mock
import shutil
import sqlalchemy
--- a/kmip/tests/unit/services/server/test_monitor.py
+++ b/kmip/tests/unit/services/server/test_monitor.py
@@ -14,7 +14,7 @@
# under the License.
import logging
-import mock
+from unittest import mock
import multiprocessing
import os
import shutil
--- a/kmip/tests/unit/services/server/test_session.py
+++ b/kmip/tests/unit/services/server/test_session.py
@@ -20,7 +20,7 @@
import datetime
-import mock
+from unittest import mock
import socket
import testtools
import time
--- a/kmip/tests/unit/services/test_kmip_client.py
+++ b/kmip/tests/unit/services/test_kmip_client.py
@@ -66,7 +66,7 @@
from kmip.services.results import QueryResult
from kmip.services.results import RekeyKeyPairResult
-import mock
+from unittest import mock
import os
import socket
import ssl
--- a/kmip/tests/unit/services/test_kmip_protocol.py
+++ b/kmip/tests/unit/services/test_kmip_protocol.py
@@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-from mock import call, MagicMock
+from unittest.mock import call, MagicMock
from testtools import TestCase
import binascii
--===============3716318796773223139==--
Technical Details
Message-ID:
<O0SJz-cJHW-11@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Alexandre Detiste <alexandre.detiste@gmail.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154377: python-pykmip: please drop usage of python3-mock using provided patch
Date: Wed, 18 Nov 2026 19:40:01 +0100
Message-ID: <O0SJz-cJHW-11@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Nov 18 18:31:11 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.548
Reply-To: Alexandre Detiste <alexandre.detiste@gmail.com>, 1154377@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+openstack@tracker.debian.org
X-Debian-Pr-Message: report 1154377
X-Debian-Pr-Package: src:python-pykmip
X-Debian-Pr-Source: python-pykmip
X-Gm-Message-State: APuU4Z/YoojQ3WaRIw3iXOlnxYnuPsaZEU8/14R5JeQnO38XhC6nqUQ0
4u32M6LUrRVBO5MMSp/V7oh4tL1LePFjthh8CJd8IXQvo9RQgIDXuskcHpVKW8im
X-Gm-Gg: AYBFou12R+HUnikbMoUZE9vRUkQlNcLzXC4ksbNBm7ZFyLsAWkvyGq2QeDRitOVlgQ9
wj6cY3o4dzer8Nx79f3dVIRTLh+F+upTln6Tb7WS8GZn5GbSgT8Dng9RuQiv76OL22Mssa7wC61
TQamGMUPM51gHg3UFWnw8x/HRd6YzwmTskUXltdIuaCbsArCN9JY4Br1aShzLcnoVnCmANAOH8P
fF0nKIJcDxy39HdZGzTv+vT3jSK3eyiHkT8RaZR0prhk5LlgcHz4dcnSWLNb+wIDWVIuQHRctk0
raycTBUHHqJCuUpg4nCTbjaF3o01RPfJFY+48b1soi++Zoj2m8NK3O1tT9vJtcKWHJsZjqGlyBw
y2AFC6nz9Hi33S5a60Ie5g7IxxEc2OJSgtV2cF9SL3HjyoTQ6/iVh/A16EZQH+DWIofb513uCNa
RoR4PHlGOxCOVKsRSkZPGtTvVuJcnFRF0gz/55B7GfPVHLFIS4QSmv5xUhP5/Mw2tS9/hUZCsPF
B7PnqtPZUjq10JP+tJydok/RLMnqtJ4YmMQasU2VRanPTHlFNS6pY8qnw5uTFbkRa+9wWqatYxr
J3gvT8OF7RWJ8JiRcTJ+Q1fE/vdT8nxH4iETmyXwGS47ELrT03ikEq+qtzPZIR7XSLd5ogkdc7N
kNVLkcTVSQ8+3n2XoBdDnPu51hRo9E1RqwYR54ebI
X-Received: by 2002:a17:907:a089:b0:c4d:31ad:9dd5 with SMTP id a640c23a62f3a-c510e3b3e30mr325964166b.42.1795026613193;
Wed, 18 Nov 2026 10:30:13 -0800 (PST)
X-Google-Original-From: Alexandre Detiste <tchet@debian.org>
Content-Type: multipart/mixed; boundary="===============3716318796773223139=="
MIME-Version: 1.0
X-Mailer: reportbug 13.2.0+nmu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003390
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 163
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 18 Nov 2026 19:30:12 +0100
X-Original-Message-ID: <179502661212.68689.10635891256779950132.reportbug@quieter>