Commit bca98d95 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python311Packages.psycopg: skip refcounting tests

Patch created by Nikolas Ovaskainen. Thank you!

Closes: #271926
parent 89590d2a
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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 = ''