[From nobody Wed Nov 18 20:31:06 2026
Received: (at submit) by bugs.debian.org; 10 Sep 2026 12:36:56 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-8.2 required=4.0 tests=BAYES_00,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,
 RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,XMAILER_REPORTBUG
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 44; hammy, 150; neutral, 40; spammy,
 0. spammytokens: hammytokens:0.000-+--H*Ad:N*Bug,
 0.000-+--HTo:N*Debian, 0.000-+--forky, 0.000-+--HTo:N*System,
 0.000-+--HTo:N*Bug
Return-path: &lt;alexandre.detiste@gmail.com&gt;
Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:55693)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
 (Exim 4.96) (envelope-from &lt;alexandre.detiste@gmail.com&gt;)
 id 1x4e1Q-002nMQ-0v for submit@bugs.debian.org;
 Thu, 10 Sep 2026 12:36:56 +0000
Received: by mail-ed1-x52c.google.com with SMTP id
 4fb4d7f45d1cf-6a63667b78aso11268919a12.3
 for &lt;submit@bugs.debian.org&gt;; Thu, 10 Sep 2026 05:36:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1789043814; x=1789648614; darn=bugs.debian.org;
 h=date:message-id:subject:to:content-transfer-encoding:mime-version
 :content-type:from:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=MAA4TX/wqQl4YI6dRspWCQn6DTyQfE4NN+O7WKoQFmI=;
 b=CJLWe2SUNnDR1yM/CAJ3Tt7ksleIneYHqW4hQodO9qBxlOeVUmo/SOazBX23vYyHL9
 y/TCUus0Ay2QRP48bnLHOZTxcJh7ree7rQgkh5eLrGC6hVHNHIP/GyR78bxrboHUqlaY
 WUDKdYE0hdNKQSYl4h9A/SffEAOAS+vjgObKClsMA7dAvUuPp2B7YA1zRWv8JHEq8wv9
 jsC9APXuy7eit0pqPZpVX6BIn1u+KUIEfViiKKDf98bR3EZoHJEsR6QGKWQ/jEBTdONd
 ZmxcT7XNUT80Iy1t1EPYwl8hSOgJd6RmcaQVB0ckLHE7exdRA6k43Fp4S6dZY16zADOa
 HnsA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1789043814; x=1789648614;
 h=date:message-id:subject:to:content-transfer-encoding:mime-version
 :content-type:from:x-gm-gg:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to:content-type;
 bh=MAA4TX/wqQl4YI6dRspWCQn6DTyQfE4NN+O7WKoQFmI=;
 b=G271xZh0UJJrltK6Mun4o3+i4x8UVcM8ra/muwgDh6A4zd3FPjD75xvJMsicPxp5eH
 YIeWN1OZdjFSjrsVJfBf4CWvNgmI3T2J+x0M/EyMIz0i2rZewZ8nfQAnEVzjqivXB6oc
 5eIwXMKwmCKT997b5zoPfCDcOxtMc6nO1NLEtAhuFVRV/8mXZazjlEAYmZhBBORFv0XF
 UvybVO1zGK5DgbVKv8oPQYzctUx43NoKg7msEKjEd/eZn68Yi9Mvb4nBN9RhXFSheuby
 NdM45xxPCPeYey8yU4OruU82BU6WNQrcquypU526d0MOBNB5Q2Ddu6hpzeFnUBtdtpG2
 cCQw==
X-Gm-Message-State: AFuF++n2POSMDc7jI9aF6CtY2qApxd9UlBwL5svZjBYF1MO1O05Uge0s
 A9XIO8Nj4H5tKgovaMxd1Diga0XOWBCU67p8Ecg+RSxhZ2QpZhP97ukTfJbFfw==
X-Gm-Gg: AYBFou0L0STAUVnL75db3Ce4cMlrJDIJ2iiPR0vb0orA4AcyZPWFz+n9Bhv5zbdSjT7
 QhqM+U+q5zlxvtWmgvvF5FVlKlgQJ/mZBKuN9zezTziT7xz4VH6lXSXa7YB5xbzX017UQhJc/Ts
 X/+4lbg00AAH1jLcPADBIwxeI7JTmtEMgCZpfc/TNm4Hq0Qd06DhnuB+FsZuhoVqZbKH3GTiS1M
 vBcHlwDlfkXamDVoRx0CPfdiLTPgThKL/r6Nm1cc/oBUXivGhxi3+Fk9JaaP5p7Smy8LeLiqXP2
 wwxmuSU4ZV638S5N4Qt3ttkX3pXqRmXKRaMiKxTGv5F565CT3aNhXdCC34Zuxq8butoNWAv1y2F
 sQEkajUjshQKEtJuAW8Ddpq8v0U4Vi+nq9lzu8nudbn6srorIc5x/T5o2/SiFniiOrP1bRxHl4o
 sDloVaVCE6wjvICgzLHCU77+ZYCYRJYHWZHkJRsjBP2VFgqI2Z70/AnBCBSmpC7Ry1bFhIkrkr9
 RJ7Oj9gXpXqtSKX6lLpTITpEMbtSej7qpyfTS5f9A/zb/ZdScNj3WBOqbjK1+qaozt0r4TMuETB
 je0DDni+N6D+QkAedVU8XTseWTYRCxOFVZPv2ElHtPHHbccZwcwVe9rAvcsJPw==
X-Received: by 2002:a17:907:da9:b0:c26:19de:9ad1 with SMTP id
 a640c23a62f3a-c2619dea732mr1549972966b.41.1789043813686; 
 Thu, 10 Sep 2026 05:36:53 -0700 (PDT)
Received: from quieter (173.108-201-80.adsl-dyn.isp.belgacom.be.
 [80.201.108.173]) by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-c294682fcfbsm107239466b.16.2026.09.10.05.36.52
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 10 Sep 2026 05:36:53 -0700 (PDT)
From: Alexandre Detiste &lt;alexandre.detiste@gmail.com&gt;
X-Google-Original-From: Alexandre Detiste &lt;tchet@debian.org&gt;
Received: (nullmailer pid 270801 invoked by uid 1000);
 Thu, 10 Sep 2026 12:36:52 -0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: pycsw: please patch-out trivial usage of python3-mock
Message-ID: &lt;178904381271.270675.8847965211530295456.reportbug@quieter&gt;
X-Mailer: reportbug 13.2.0+nmu1
Date: Thu, 10 Sep 2026 14:36:52 +0200
Delivered-To: submit@bugs.debian.org

Source: pycsw
Version: 2.6.2+dfsg-4
Severity: important

Dear Maintainer,


python3-mock is an obsolete package.
&quot;mock&quot; has been merge in the Python Standard Library a long time ago,
around the times of Python3.7

Please consider this trivial pseudo-patch that would help remove
the few remaining usage of this library from Debian.

There is no defined timeline yet that says wether this should happen
before of after Forky is released.

Greetings

Alexandre


diff --git a/debian/control b/debian/control
index 28663c0..965c393 100644
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,6 @@ Build-Depends: apache2-dev,
                python3-geolinks,
                python3-legacy-cgi,
                python3-lxml,
-               python3-mock &lt;!nocheck&gt;,
                python3-owslib,
                python3-psycopg2 &lt;!nocheck&gt;,
                python3-pyproj,
diff --git a/tests/unittests/test_wsgi.py b/tests/unittests/test_wsgi.py
index 66aecbf..2bc75a4 100644
--- a/tests/unittests/test_wsgi.py
+++ b/tests/unittests/test_wsgi.py
@@ -30,7 +30,7 @@
 
 from wsgiref.util import setup_testing_defaults
 
-import mock
+from unittest import mock
 import pytest
 
 from pycsw import wsgi
]