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 1sHRwH-007cIK-T0 for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Jun 2024 17:39:14 +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 1sHRwF-003Yvs-Ar for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Jun 2024 17:39:12 +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 1sHRwF-003Yvk-1S for pgsql-hackers@lists.postgresql.org; Wed, 12 Jun 2024 17:39:11 +0000 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sHRwD-001JjD-55 for pgsql-hackers@postgresql.org; Wed, 12 Jun 2024 17:39:11 +0000 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-2550aa6f994so36760fac.3 for ; Wed, 12 Jun 2024 10:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718213947; x=1718818747; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=i8GqjfM1/5xrEEHD+W0CNKv/kp9y6B2ifgYiGBZoVkI=; b=e0eK34MuoHQgIzyPbO8ssk2M9oQLUmyP+jKUF6nAIlTROm63jH35/scLt3tM9Qao+t i3gwkvyppZex6ToINzIyxO213XBTO+Gx5/sY02kxk8tlrS5UzMniFYRd2SyWjad/08lv 7h6BsDxHqRPd1kYhCIclPedVvsU4tK9ym9ihKuYO5tdIA5d6ukqDDIu1YtFitQPJVprQ uy5zRyeVzJTsuDHUB93GCCJsePQFvf+WksWtC4CXMV7YvWFT8ZdIw5vTgJEm53YkvNuE QOuv8Kgif2sm7NJQhAHJyxVJkhXnBbgW32fiRocdqI4pp6ZO0NlXNcvAdK3PniYaeOxv ROEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718213947; x=1718818747; h=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=i8GqjfM1/5xrEEHD+W0CNKv/kp9y6B2ifgYiGBZoVkI=; b=cwFGYT8mDP7U+92aXm1JcQgkQDj74d9jWUtgM9Yb91j75nVr4Qtb/9jyTb0902n1Dq Jv5cLY+1AAl68XlbYjjycWkWM/oq744+z1xA+gsNnI0ln91Xa5nKitdbdOiusYbPDsSY vQjfBlt7zP8FSCkCwCjOOhmMmu4TZWfihHX29MF76ZKShedrNF96DVXLBbsrtzQKZPRv b0ao+1M+zjF7xALCT9vAgA1wXscZwiSOlqw82aD+/z+sWs7zmDQmDzme/2DJSahNxpcL YWvszJeKgbrYuk1qjGWE/nfg3K6yGz1BEGJ9AhJ6jCrz21NN6XBVJPGijn9vkM4FLfgU zaSw== X-Forwarded-Encrypted: i=1; AJvYcCW5eTieHnNAaXDi198cn1OG6756W6ulFmAcsx7pztkRx+LYndSBTRg8q/lJWO5/sGz87Dhkw3PWwnDt+HnDqwokYkBZHocGykV40SXk X-Gm-Message-State: AOJu0YxG77bJNEZeZXYk0MBROzmuQUxLbMVtLNuHQ6+oks8kyiK51Mvx hbPB9Pg6+qyOPdW6psThHNfUDeZOyRrTN6kCNRmG0f/UJ0Zl+vcw8G5RdwB03TU+fBc3A0JDzR4 clMfcnOLv+bF0NYekjbI+ywoUlJ8= X-Google-Smtp-Source: AGHT+IHOjO92o2vRTw5jtlya31uQNJsFwaq/L4LdWQ7hAvqLbu5joWUAVxJZCEdo5qewSc9/Qaeng//P3jTN0WOb0Ng= X-Received: by 2002:a05:6870:1585:b0:254:cfd7:4f91 with SMTP id 586e51a60fabf-25514e92885mr3167941fac.45.1718213947290; Wed, 12 Jun 2024 10:39:07 -0700 (PDT) MIME-Version: 1.0 References: <20240610200411.byj6sv2vpgol6wcf@awork3.anarazel.de> <20240612155040.u6cvatdb5tiwcxci@awork3.anarazel.de> In-Reply-To: From: Daniele Varrazzo Date: Wed, 12 Jun 2024 19:38:54 +0200 Message-ID: Subject: Re: RFC: adding pytest as a supported test framework To: Daniel Gustafsson Cc: Andres Freund , Jacob Champion , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 12 Jun 2024 at 19:30, Daniel Gustafsson wrote: > I might be missing something obvious, but if we use a third-party libpq driver > in the testsuite doesn't that imply that a patch adding net new functionality > to libpq also need to add it to the driver in order to write the tests? I'm > thinking about the SCRAM situation a few years back when drivers weren't up to > date. As Jelte pointed out, new libpq functions can be tested via CFFI. I posted a practical example in a link upthread (pure Python Psycopg is entirely implemented on FFI). -- Daniele