File: remove-mock-dependency.patch

package info (click to toggle)
python-certbot-dns-standalone 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 196 kB
  • sloc: python: 204; makefile: 14
file content (38 lines) | stat: -rw-r--r-- 1,123 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: Alexandre Detiste <alexandre.detiste@gmail.com>
Date: Sat, 16 Aug 2025 14:48:05 +0300
Subject: Use "unittest.mock" from standard library and remove dependency on
 python3-mock

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064262
Forwarded: https://github.com/siilike/certbot-dns-standalone/pull/25
---
 certbot_dns_standalone/dns_standalone_test.py | 3 +--
 setup.py                                      | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/certbot_dns_standalone/dns_standalone_test.py b/certbot_dns_standalone/dns_standalone_test.py
index 94e9979..1028af2 100644
--- a/certbot_dns_standalone/dns_standalone_test.py
+++ b/certbot_dns_standalone/dns_standalone_test.py
@@ -2,8 +2,7 @@
 
 import os
 import unittest
-
-import mock
+from unittest import mock
 
 from certbot import errors
 from certbot.plugins import dns_test_common
diff --git a/setup.py b/setup.py
index 5a2cc2a..cf72a06 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,6 @@ install_requires = [
     'acme>=0.21.1',
     'certbot>=3.0.0',
     'dnslib>=0.9.0',
-    'mock',
     'setuptools',
 ]