Unverified Commit 9a224ef9 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python314.aiohttp-utils: disable broken tests (#478551)

parents 35f7dbf7 39b390df
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pythonAtLeast,
  setuptools,
  aiohttp,
  python-mimeparse,
@@ -11,7 +12,7 @@
  webtest-aiohttp,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "aiohttp-utils";
  version = "3.2.1";
  pyproject = true;
@@ -19,7 +20,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "sloria";
    repo = "aiohttp-utils";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-CGKka6nGQ9o4wn6o3YJ3hm8jGbg16NKkCdBA1mKz4bo=";
  };

@@ -48,11 +49,18 @@ buildPythonPackage rec {
    "test_renders_to_json_by_default"
  ];

  disabledTestPaths = lib.optionals (pythonAtLeast "3.14") [
    # RuntimeError: There is no current event loop in thread 'MainThread'.
    "tests/test_examples.py"
    "tests/test_negotiation.py"
    "tests/test_routing.py"
  ];

  meta = {
    description = "Handy utilities for building aiohttp.web applications";
    homepage = "https://github.com/sloria/aiohttp-utils";
    changelog = "https://github.com/sloria/aiohttp-utils/blob/${src.rev}/CHANGELOG.rst";
    changelog = "https://github.com/sloria/aiohttp-utils/tags/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}
})