Skip to content

Commit

Permalink
skip exit_on_error* tests to fix 3.13 test failures
Browse files Browse the repository at this point in the history
Skip `exit_on_error*` tests from `test.test_argparse` to avoid test
failures on Python 3.13.  The `exit_on_error=False` semantics
is not supported by ConfigArgParse at the moment.
  • Loading branch information
mgorny committed Jul 12, 2024
1 parent c6a9742 commit 5e9f442
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_configargparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,8 @@ def testYAMLConfigFileParser_w_ArgumentParser_parsed_values(self):
test_argparse_source_code = test_argparse_source_code.replace(
'argparse.ArgumentParser', 'configargparse.ArgumentParser').replace(
'TestHelpFormattingMetaclass', '_TestHelpFormattingMetaclass').replace(
'test_main', '_test_main')
'test_main', '_test_main').replace(
'test_exit_on_error', '_test_exit_on_error')

# pytest tries to collect tests from TestHelpFormattingMetaclass, and
# test_main, and raises a warning when it finds it's not a test class
Expand Down

0 comments on commit 5e9f442

Please sign in to comment.