File: remove-python3-mock.patch

package info (click to toggle)
humanfriendly 10.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,056 kB
  • sloc: python: 3,212; makefile: 67; sh: 33
file content (15 lines) | stat: -rw-r--r-- 371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
From: Alexandre Detiste <tchet@debian.org>
Subject: remove trivial usage of python3-mock
Forwarded: https://github.com/xolox/python-humanfriendly/issues/62

--- a/humanfriendly/tests.py
+++ b/humanfriendly/tests.py
@@ -123,7 +123,7 @@
 )
 
 # Test dependencies.
-from mock import MagicMock
+from unittest.mock import MagicMock
 
 
 class HumanFriendlyTestCase(TestCase):