Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uzJHh-0022Ix-Vn for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Sep 2025 18:23:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uzJHf-001FNb-4M for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Sep 2025 18:23:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uzJHe-001FNT-QN for pgsql-hackers@lists.postgresql.org; Thu, 18 Sep 2025 18:23:06 +0000 Received: from mail-qv1-xf33.google.com ([2607:f8b0:4864:20::f33]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uzJHZ-001YMH-2s for pgsql-hackers@postgresql.org; Thu, 18 Sep 2025 18:23:05 +0000 Received: by mail-qv1-xf33.google.com with SMTP id 6a1803df08f44-792f273fbe4so7837586d6.3 for ; Thu, 18 Sep 2025 11:23:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1758219780; x=1758824580; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=h0pIYnhvPUPx98BWuaxjEjPHESONTzy01MoYtrezG8Q=; b=efKUmnVkM5iWBweRCX61C/HlLNQagzYR3eFctXqDSGjFMk2UOatdTw/RZ86gp3SaEO DZPGXaRiuhM9Q9qJE/z2SWwgFUaT5JjQWKx3qSBoa5kaRv5nOm9SgrDBar1/EibgHU0i s0xZWJTf+YwuQAttUoD0obqrBK7dpm3ar5MY3/ScD/NYJtzs/raSSCMYY7EUtP3+FyZg vfcgPbai0tzXZjkJ74TUWt1pJl3uB1cyb4JteZH18gMUF107pPOhQ2d54hKwBSXXVV8+ ukQNB7Vi+FGuvYOqBHpnkosIGIq3aLvjYcxAe6YOnyDOghglt4vwSaQ+gQ0wUB4sOIfZ EaSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758219780; x=1758824580; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h0pIYnhvPUPx98BWuaxjEjPHESONTzy01MoYtrezG8Q=; b=pqX2YMiq2Jf6gxHxs9QT/ICpZuHFpqTEX0/8KUWsfqrlYpJ5hNzlwt7VP9JdYoUars /ah+GAgda4I4jC+Cf6MpIWq4KSA0Fr1TbvMrDT1kMbwVlUDS3xoIcGfuu1YITCQrJXoI E6RrvAd0GTjhP4WhvFjWg1M2kcsAcPTjvOxJ2JRVyHDyT2REI/RwIV+tu2MoaMhB00aW 528cnWxsvtSfnDrwSZ8yJDKZlXK2AX5hdfcpSD7K6i8Il7VbGUbBs4/YGQynaPsNYgQz a2DdJmMjHr00Ux5ljjeLue1CdsxN8zdphanMmkXaN3K1ta26PVSwtN6PNTQiHMHvBNvO WfRg== X-Gm-Message-State: AOJu0YwrUbUzhz3/2fHJxYEdk7Ta6xLbwCikwdxhqVMlXvVAFSBhzXmz 1akoZqfZAEmHEwKCq+ds+9R9ouqeK73exbjTPgdSbcPDpgAoNhy1NnITp9eJJbfsqiGghyQkHNU MDTwNbang0CGEozdTrcWbdNPglUWOvqGG1KM9hyFOvdAxwNyeWBxIe/t0 X-Gm-Gg: ASbGncsI65gY6V5NSGWGFT1ZOczkPF29JCsadCEli5aq2BcLF/2d7ZxiWYkYf+sXq2y ICnwz96Zi09x6l4e9f5Y7RuI6zHkC3v7HieMN/Ype17t4h80rDt4u0vNm7ptd9Rx9b6NE64n0PV 9RGYedXzUE0YXaCrwZjmxl6KHK25dDgbVAzFbFzJxOlE1ki2iea1AzgqtDcM7mZFYWIrHkHg+av U/A3MQBoCvxj7Bbj/Hxc2xFGz3f X-Google-Smtp-Source: AGHT+IHlemj/yQ5B4Wi5m+ojDp9XhMVCxGNoUbIvoC7djvBDcSfeh0tTOE4udKKMGO8jBXOi1D++WgqWNNIKT3xQoBc= X-Received: by 2002:a05:6214:62d:b0:78f:493d:15c6 with SMTP id 6a1803df08f44-79911fe72bamr4956516d6.3.1758219779778; Thu, 18 Sep 2025 11:22:59 -0700 (PDT) MIME-Version: 1.0 References: <20240610200411.byj6sv2vpgol6wcf@awork3.anarazel.de> <20240612155040.u6cvatdb5tiwcxci@awork3.anarazel.de> <2302192.1718380169@sss.pgh.pa.us> In-Reply-To: From: Jacob Champion Date: Thu, 18 Sep 2025 11:22:48 -0700 X-Gm-Features: AS18NWCWfr2r_ez-Sdk5xN6j_kPV8V2wfuAyjxMY4AyYowoDwf1RjmiXecy09EE Message-ID: Subject: Re: RFC: adding pytest as a supported test framework To: PostgreSQL Hackers Cc: Robert Haas , Jelte Fennema-Nio , Daniel Gustafsson , Andres Freund , Tom Lane , Peter Eisentraut , Nazir Bilal Yavuz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Sep 9, 2025 at 2:50=E2=80=AFPM Jacob Champion wrote: > When enabling the feature, the check_pytest.py script checks that the > configured `PYTHON` executable has all of pytest-requirements.txt > installed. Peter pointed out that this is incorrect: what we actually > want to check is that the interpreter used by pytest has all of the > required packages, and the two could be different. Turns out we've already solved this exact problem for Perl and Prove [1], and I should probably choose a similar solution for Python and pytest. In other words: make the requirements check into a test. --Jacob [1] http://postgr.es/c/c4fe3199a