Unverified Commit 4182af42 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python312Packages.pytest-examples: skip failing tests (#383886)

parents 3b236174 8984ed43
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
{
  lib,
  black,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  pytest,
  pytestCheckHook,
  pythonOlder,
  black,
  ruff,
  pytestCheckHook,
}:

buildPythonPackage rec {
@@ -15,8 +14,6 @@ buildPythonPackage rec {
  version = "0.0.15";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "pydantic";
    repo = "pytest-examples";
@@ -39,6 +36,13 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "pytest_examples" ];

  disabledTests = [
    # Fails with AssertionError because formatting is different than expected
    "test_black_error"
    "test_black_error_dot_space"
    "test_black_error_multiline"
  ];

  meta = {
    description = "Pytest plugin for testing examples in docstrings and markdown files";
    homepage = "https://github.com/pydantic/pytest-examples";