[From nobody Tue Oct  6 06:51:06 2026
Received: (at submit) by bugs.debian.org; 5 Jan 2024 20:16:35 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-8.1 required=4.0 tests=BAYES_00,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FREEMAIL_FROM,
 RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,
 XMAILER_REPORTBUG autolearn=ham autolearn_force=no
 version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 33; hammy, 150; neutral, 123; spammy,
 0. spammytokens: hammytokens:0.000-+--trixie,
 0.000-+--H*M:reportbug, 
 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug,
 0.000-+--H*UA:reportbug
Return-path: &lt;alexandre.detiste@gmail.com&gt;
Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]:56401)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
 (Exim 4.94.2) (envelope-from &lt;alexandre.detiste@gmail.com&gt;)
 id 1rLqcN-005lPh-Lv
 for submit@bugs.debian.org; Fri, 05 Jan 2024 20:16:35 +0000
Received: by mail-ej1-x632.google.com with SMTP id
 a640c23a62f3a-a28e6392281so218682866b.0
 for &lt;submit@bugs.debian.org&gt;; Fri, 05 Jan 2024 12:16:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1704485790; x=1705090590; darn=bugs.debian.org;
 h=date:message-id:subject:to:mime-version:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=yxRkd+r+Hu0lh7pWeCjQT1nL8BxqNKGPwltydgRHrLI=;
 b=WLLfF4Ak2XAuqYNueQfAzLpDFCeBH+sSDD3WBdW5FUN1D6ffwnYgZRV1hV9rNqOfTp
 NwdRBv7RhXG46+gQIpPD6qXsvQMTWZ5FTHuyCONRA5KEHpw9ZeI/XeJNaOmUVInATrPD
 +xG4O4I2hiwQx64JERp3ssmJmGIYqn4LOobeuNIyMPkMmkfwO+y11t12DLipQ62/rdYP
 PI4ks0jfxlnjVvx4O9e3GDJ4u3XOhmvQQoV2nhQ/kjUMQ9tm80H4Fg3Ahw0DylES6a8Y
 U0CMmIb3DiftuetMMQHADWPJAIXlE+aCGe5TCletQZTwttSH5byANWQS7Pu+h8v9yopc
 l0Mg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1704485790; x=1705090590;
 h=date:message-id:subject:to:mime-version:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=yxRkd+r+Hu0lh7pWeCjQT1nL8BxqNKGPwltydgRHrLI=;
 b=vzpaT8TK5g6bh+bpqkNnEh40aWvoFWYrMj8H+8+HG9ib93pShAe5d0wZAgexTZ6VTv
 BoGmaKy9WkyDED0svxwI0TyFGNWu+3M5r0LjGQ+qQ+bpDjbKcRC+avq1AkYDXacS3+ly
 MSFz/HhNUqerh7YqT/p/21yULdKWdu/iOE2wOudZYWaec/A3Emq6Q5IbjLDj94xIBcXr
 suMu4LNfnU1dCq18oo3F0r0KavEjnFvaPOpbkUIinRui9ETaYIzM6yg+6ZRraZxjmeW/
 aJtxAUhXyAnyQyvnwx55pWkgEe7Nc8YTjF60/BmvnnGcPzgqtA0XiBPS6qehe2A3VNsZ
 n5WQ==
X-Gm-Message-State: AOJu0YwMdxrM3NZhvm0iOFJevLlflpd+BrvjcUpi+AWc7eKUk2ScH9VK
 oFE8CAVvyWsj+efKcFqLNn2XJPkmzOo=
X-Google-Smtp-Source: AGHT+IHe++IuPwvJ/NKpazD3gp73aNQrhrj22hn8tqE+iSRQV3ZnxZD5WLph947dnW3xaiAqVhVKCA==
X-Received: by 2002:a17:906:494c:b0:a27:7c2e:420a with SMTP id
 f12-20020a170906494c00b00a277c2e420amr1471778ejt.8.1704485789699; 
 Fri, 05 Jan 2024 12:16:29 -0800 (PST)
Received: from debian (147.45-177-91.adsl-dyn.isp.belgacom.be. [91.177.45.147])
 by smtp.gmail.com with ESMTPSA id
 z23-20020a1709060f1700b00a26f1e3093asm1213849eji.49.2024.01.05.12.16.29
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 05 Jan 2024 12:16:29 -0800 (PST)
From: Alexandre Detiste &lt;alexandre.detiste@gmail.com&gt;
X-Google-Original-From: Alexandre Detiste &lt;tchet@debian.org&gt;
Received: (nullmailer pid 48399 invoked by uid 1000);
 Fri, 05 Jan 2024 20:16:28 -0000
Content-Type: multipart/mixed; boundary=&quot;===============7452679459167162276==&quot;
MIME-Version: 1.0
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: python-thinc: remove usage of python3-mock
Message-ID: &lt;170448578876.48354.3625460316757193680.reportbug@localhost&gt;
X-Mailer: reportbug 12.0.0
Date: Fri, 05 Jan 2024 21:16:28 +0100
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============7452679459167162276==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Source: python-thinc
Severity: normal


Please apply this patch to remove usage of old python3-mock
and use unittest.mock from the standard library instead.

Greetings


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (501, 'testing'), (450, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-5-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), LANGUAGE=fr_BE:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

--===============7452679459167162276==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;remove-mock.patch&quot;

diff --git a/debian/control b/debian/control
index 6b924ba..d5ba177 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,6 @@ Build-Depends: cython3,
                python3-cytoolz,
                python3-dill,
                python3-hypothesis,
-               python3-mock,
                python3-msgpack,
                python3-msgpack-numpy,
                python3-murmurhash,
diff --git a/requirements.txt b/requirements.txt
index 112e535..a68b66e 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -22,7 +22,6 @@ hypothesis&gt;=3.27.0,&lt;7.0.0
 pytest&gt;=5.2.0,!=7.1.0
 pytest-cov&gt;=2.7.0,&lt;5.0.0
 coverage&gt;=5.0.0,&lt;8.0.0
-mock&gt;=2.0.0,&lt;3.0.0
 flake8&gt;=3.5.0,&lt;3.6.0
 mypy&gt;=0.990,&lt;0.1000; python_version &gt;= &quot;3.7&quot;
 types-mock&gt;=0.1.1
diff --git a/thinc/tests/layers/test_linear.py b/thinc/tests/layers/test_linear.py
index 2362b55..2e5602f 100644
--- a/thinc/tests/layers/test_linear.py
+++ b/thinc/tests/layers/test_linear.py
@@ -1,5 +1,5 @@
 import pytest
-from mock import MagicMock
+from unittest.mock import MagicMock
 from hypothesis import given, settings
 import numpy
 from numpy.testing import assert_allclose
diff --git a/thinc/tests/layers/test_with_debug.py b/thinc/tests/layers/test_with_debug.py
index 679c1f2..d4bdbee 100644
--- a/thinc/tests/layers/test_with_debug.py
+++ b/thinc/tests/layers/test_with_debug.py
@@ -1,4 +1,4 @@
-from mock import MagicMock
+from unittest.mock import MagicMock
 from thinc.api import with_debug, Linear
 
 

--===============7452679459167162276==--
]