mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
python3Packages.typed-argparse: skip broken tests
Fixes #548842
(cherry picked from commit 1dddec2571)
This commit is contained in:
committed by
github-actions[bot]
parent
cd8f5bdc12
commit
69d01232c5
@@ -30,13 +30,27 @@ buildPythonPackage {
|
||||
pytest-cov-stub
|
||||
];
|
||||
|
||||
# The test suite checks for exact output in a way that seems fragile to
|
||||
# cosmetic changes in Python's argparse output, and means some tests fail on
|
||||
# more recent releases. Disable the affected tests while we're waiting for
|
||||
# upstream fixes.
|
||||
#
|
||||
# https://github.com/typed-argparse/typed-argparse/pull/82
|
||||
disabledTests = lib.optionals (pythonAtLeast "3.14") [
|
||||
"test_nargs_with_choices__literal_illegal_default"
|
||||
"test_nargs_with_choices__enum_illegal_default"
|
||||
"test_bindings_check"
|
||||
"test_check_reserved_names"
|
||||
];
|
||||
# https://github.com/typed-argparse/typed-argparse/issues/84
|
||||
disabledTests =
|
||||
lib.optionals (pythonAtLeast "3.14") [
|
||||
"test_nargs_with_choices__literal_illegal_default"
|
||||
"test_nargs_with_choices__enum_illegal_default"
|
||||
"test_bindings_check"
|
||||
"test_check_reserved_names"
|
||||
]
|
||||
++ lib.optionals (pythonAtLeast "3.13") [
|
||||
"test_dynamic_choices"
|
||||
"test_literal__basics"
|
||||
"test_enum__basics[False]"
|
||||
"test_enum__basics[True]"
|
||||
"test_subparsers_common_args__subparser_after_positional"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "typed_argparse" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user