Skip to content

Commit 3a3b884

Browse files
python313Packages.dogpile-cache: speed up test execution, ignore more flaky tests
Following upstream https://github.com/sqlalchemy/dogpile.cache/blob/rel_1_5_0/pyproject.toml#L68
1 parent 5f7c433 commit 3a3b884

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

  • pkgs/development/python-modules/dogpile-cache

pkgs/development/python-modules/dogpile-cache/default.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
buildPythonPackage,
44
fetchPypi,
55
setuptools,
6+
pytest-xdist,
67
pytestCheckHook,
78
mako,
89
decorator,
@@ -31,8 +32,14 @@ buildPythonPackage rec {
3132
];
3233

3334
nativeCheckInputs = [
34-
pytestCheckHook
3535
mako
36+
pytest-xdist
37+
pytestCheckHook
38+
];
39+
40+
disabledTestPaths = lib.optionals stdenv.hostPlatform.isLinux [
41+
# flaky
42+
"tests/cache/test_dbm_backend.py"
3643
];
3744

3845
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
@@ -44,6 +51,8 @@ buildPythonPackage rec {
4451
"test_get_value_plus_created_registry_safe_cache_slow"
4552
"test_get_value_plus_created_registry_unsafe_cache"
4653
"test_quick"
54+
"test_region_set_get_value"
55+
"test_region_set_multiple_values"
4756
"test_return_while_in_progress"
4857
"test_slow"
4958
];

0 commit comments

Comments
 (0)