1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Fix color param
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Bug-Debian: https://bugs.debian.org/1123108
Last-Update: 2026-02-25
Index: cmd2/tests/test_argparse_custom.py
===================================================================
--- cmd2.orig/tests/test_argparse_custom.py
+++ cmd2/tests/test_argparse_custom.py
@@ -1,6 +1,7 @@
"""Unit/functional testing for argparse customizations in cmd2"""
import argparse
+import sys
import pytest
@@ -66,6 +67,7 @@ def test_apcustom_no_choices_callables_a
assert 'None of the following parameters can be used alongside a choices parameter' in str(excinfo.value)
+@pytest.mark.skipif(sys.version_info >= (3, 14), reason="argparse now raises ValueError for this case")
@pytest.mark.parametrize('kwargs', [({'choices_provider': fake_func}), ({'completer': fake_func})])
def test_apcustom_no_choices_callables_when_nargs_is_0(kwargs) -> None:
parser = Cmd2ArgumentParser()
|