python311Packages.psycopg: skip refcounting tests

Patch created by Nikolas Ovaskainen. Thank you!

Closes: #271926
This commit is contained in:
Martin Weinelt 2023-12-06 18:25:53 +01:00
parent 89590d2a02
commit bca98d9595

View File

@ -2,6 +2,7 @@
, stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, fetchurl
, pythonOlder
, substituteAll
@ -49,6 +50,12 @@ let
libpq = "${postgresql.lib}/lib/libpq${stdenv.hostPlatform.extensions.sharedLibrary}";
libc = "${stdenv.cc.libc}/lib/libc.so.6";
})
(fetchpatch {
# add fixture to mark flaky ref count tests
url = "https://github.com/psycopg/psycopg/commit/70ef364324ba3448ef9ac0e29329c9d802380e4b.patch";
hash = "sha256-8PlrBcIumlxFjNXCAfm4NpSIxAnvLR8TopHzneJyzf0=";
})
];
baseMeta = {
@ -205,7 +212,7 @@ buildPythonPackage rec {
pytestFlagsArray = [
"-o" "cache_dir=$TMPDIR"
"-m" "'not timing'"
"-m" "'not refcount and not timing'"
];
postCheck = ''