Skip to content

Disable tests

Vignesh Raman requested to merge wip/vignesh/disable-tests into apertis/v2024dev2

cmd2 fails with the error, NameError: name 'readline' is not defined NameError: name 'rl_force_redisplay' is not defined

cmd2 is not compatible with libedit and code path causes readline and rl_force_redisplay to later be undefined. cmd2 sets a custom display function using readline.set_completion_display_matches_hook() to support many of the advanced tab completion features (e.g. tab completion tables, displaying path basenames, colored results, etc.). readline.set_completion_display_matches_hook() "sets or clears the rl_completion_display_matches_hook callback in the underlying library". libedit has never implemented this hook. It merely sets it to NULL and never references it.

Until libedit supports a custom completion display function, cmd2 can't use it. So disable the tests which uses these functions to fix the error.

https://github.com/python-cmd2/cmd2/issues/1186 https://bugs.debian.org/1005761

https://phabricator.apertis.org/T9521

Merge request reports