diff --git a/pkgs/development/python-modules/doubles/default.nix b/pkgs/development/python-modules/doubles/default.nix index 09f2e2d7533b..fda5a1d54f66 100644 --- a/pkgs/development/python-modules/doubles/default.nix +++ b/pkgs/development/python-modules/doubles/default.nix @@ -3,8 +3,8 @@ buildPythonPackage, fetchFromGitHub, pytest7CheckHook, + pythonOlder, setuptools, - coverage, six, }: @@ -25,7 +25,6 @@ buildPythonPackage rec { ]; dependencies = [ - coverage six ]; @@ -33,12 +32,10 @@ buildPythonPackage rec { pytest7CheckHook ]; - # To avoid a ValueError: Plugin already registered under a different name: - # doubles.pytest_plugin - pytestFlags = [ - "-p" - "no:doubles" - ]; + preCheck = '' + # imports coverage + rm test/conftest.py + ''; disabledTestPaths = [ # nose is deprecated @@ -54,6 +51,13 @@ buildPythonPackage rec { "test/object_double_test.py" ]; + disabledTests = lib.optionals (pythonOlder "3.13") [ + # doubles.exceptions.VerifyingDoubleArgumentError: class_method() missing 1 required positional argument: 'arg' + "test_variable_that_points_to_class_method" + # doubles.exceptions.VerifyingDoubleArgumentError: get_name() missing 1 required positional argument: 'self' + "test_variable_that_points_to_instance_method" + ]; + pythonImportsCheck = [ "doubles" ]; meta = {