mrabarnett / mrab-regex

Other
430 stars 49 forks source link

Some tests fail #482

Open yurivict opened 1 year ago

yurivict commented 1 year ago
========================================================================================== FAILURES ==========================================================================================
_________________________________________________________________________________________ test_main __________________________________________________________________________________________

    def test_main():
>       unittest.main(verbosity=2)

regex_3/test_regex.py:4452: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.9/unittest/main.py:100: in __init__
    self.parseArgs(argv)
/usr/local/lib/python3.9/unittest/main.py:133: in parseArgs
    self._main_parser.parse_args(argv[1:], self)
/usr/local/lib/python3.9/argparse.py:1828: in parse_args
    self.error(msg % ' '.join(argv))
/usr/local/lib/python3.9/argparse.py:2582: in error
    self.exit(2, _('%(prog)s: error: %(message)s\n') % args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = ArgumentParser(prog='__main__.py', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True), status = 2
message = '__main__.py: error: unrecognized arguments: -rs -o\n'

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/usr/local/lib/python3.9/argparse.py:2569: SystemExit
------------------------------------------------------------------------------------ Captured stderr call ------------------------------------------------------------------------------------
usage: __main__.py [-h] [-v] [-q] [--locals] [-f] [-c] [-b]
                   [-k TESTNAMEPATTERNS]
                   [tests ...]
__main__.py: error: unrecognized arguments: -rs -o
=============================================================================== 1 failed, 100 passed in 2.21s ================================================================================
*** Error code 1

Version: 2022.9.13 FreeBSD 13.1

mtelka commented 1 year ago

I think this is same as #416 and #448.

EpicWink commented 2 months ago

See https://github.com/mrabarnett/mrab-regex/issues/448#issuecomment-2222396902