Skip to content

Commit 8984ed4

Browse files
committed
python312Packages.pytest-examples: skip failing tests
1 parent 4999dc5 commit 8984ed4

File tree

1 file changed

+9
-5
lines changed
  • pkgs/development/python-modules/pytest-examples

1 file changed

+9
-5
lines changed

pkgs/development/python-modules/pytest-examples/default.nix

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
{
22
lib,
3-
black,
43
buildPythonPackage,
54
fetchFromGitHub,
65
hatchling,
76
pytest,
8-
pytestCheckHook,
9-
pythonOlder,
7+
black,
108
ruff,
9+
pytestCheckHook,
1110
}:
1211

1312
buildPythonPackage rec {
1413
pname = "pytest-examples";
1514
version = "0.0.15";
1615
pyproject = true;
1716

18-
disabled = pythonOlder "3.8";
19-
2017
src = fetchFromGitHub {
2118
owner = "pydantic";
2219
repo = "pytest-examples";
@@ -39,6 +36,13 @@ buildPythonPackage rec {
3936

4037
pythonImportsCheck = [ "pytest_examples" ];
4138

39+
disabledTests = [
40+
# Fails with AssertionError because formatting is different than expected
41+
"test_black_error"
42+
"test_black_error_dot_space"
43+
"test_black_error_multiline"
44+
];
45+
4246
meta = {
4347
description = "Pytest plugin for testing examples in docstrings and markdown files";
4448
homepage = "https://github.com/pydantic/pytest-examples";

0 commit comments

Comments
 (0)