File: remove-mock-dependency.patch

package info (click to toggle)
python-certbot-dns-standalone 1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 180 kB
  • sloc: python: 207; makefile: 14
file content (28 lines) | stat: -rw-r--r-- 711 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
Description: Use "unittest.mock" from standard library and remove dependency on python3-mock
Author: Alexandre Detiste <alexandre.detiste@gmail.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064262
Forwarded: https://github.com/siilike/certbot-dns-standalone/pull/25

---
--- 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
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,6 @@
     'acme>=0.21.1',
     'certbot>=2.1.0',
     'dnslib>=0.9.0',
-    'mock',
     'setuptools',
 ]