File: unittest-mock.patch

package info (click to toggle)
python-srsly 2.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,256 kB
  • sloc: python: 17,567; ansic: 1,434; sh: 12; makefile: 6
file content (22 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Colin Watson <cjwatson@debian.org>
Date: Thu, 7 Nov 2024 01:00:14 +0000
Subject: Import unittest.mock instead of mock

Last-Update: 2024-11-07
---
 srsly/tests/test_msgpack_api.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srsly/tests/test_msgpack_api.py b/srsly/tests/test_msgpack_api.py
index b516038..8697644 100644
--- a/srsly/tests/test_msgpack_api.py
+++ b/srsly/tests/test_msgpack_api.py
@@ -1,7 +1,7 @@
 import pytest
 from pathlib import Path
 import datetime
-from mock import patch
+from unittest.mock import patch
 import numpy
 
 from .._msgpack_api import read_msgpack, write_msgpack