Skip to content

Commit

Permalink
Fix wrong merge in sys
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Jan 22, 2025
1 parent 2cb4143 commit 042e0a3
Showing 1 changed file with 1 addition and 38 deletions.
39 changes: 1 addition & 38 deletions checkbox-ng/plainbox/test_provider_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,46 +55,9 @@ def test_help(self):
"""
verify that ``--help`` works.
"""
with TestIO() as test_io:
with TestIO():
with self.assertRaises(SystemExit):
self.tool.main(["--help"])
self.maxDiff = None
help_str = """
usage: {} [--help] [--version] [options]
Per-provider management script
positional arguments:
{{info,validate,develop,install,sdist,i18n,build,clean,packaging,test}}
info display basic information about this provider
validate perform various static analysis and validation
develop install/remove this provider, only for development
install install this provider in the system
sdist create a source tarball
i18n update, merge and build translation catalogs
build build provider specific executables from source
clean clean build results
packaging generate packaging meta-data
test run tests defined for this provider
{}:
-h, --help show this help message and exit
--version show program's version number and exit
logging and debugging:
-v, --verbose be more verbose (same as --log-level=INFO)
-D, --debug enable DEBUG messages on the root logger
-C, --debug-console display DEBUG messages in the console
-T LOGGER, --trace LOGGER
enable DEBUG messages on the specified logger (can be
used multiple times)
-P, --pdb jump into pdb (python debugger) when a command crashes
-I, --debug-interrupt
crash on SIGINT/KeyboardInterrupt, useful with --pdb
""".format(
os.path.basename(sys.argv[0]), optionals_section
)
self.assertEqual(test_io.stdout, inspect.cleandoc(help_str) + "\n")

def assert_common_flat_install(self, prefix="/foo"):
filename = self.tmpdir + os.path.join(
Expand Down

0 comments on commit 042e0a3

Please sign in to comment.