Tests fail for me:
==> Starting check()...
[...]
================================================================================================================= FAILURES ==================================================================================================================
_____________________________________________________________________________________________________________ testPluginOption ______________________________________________________________________________________________________________
def testPluginOption():
for arg in ["--help", "-h"]:
# When help is requested and no plugin is specified, use default
with RedirectStdStreams() as out:
try:
> args, _, config = main.parseCommandLine([arg])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_classic_plugin.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
eyed3/main.py:257: in parseCommandLine
args = parser.parse_args(args=cmd_line_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
eyed3/utils/__init__.py:354: in parse_args
args = super().parse_args(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.14/argparse.py:2008: in parse_args
args, argv = self.parse_known_args(args, namespace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.14/argparse.py:2018: in parse_known_args
return self._parse_known_args2(args, namespace, intermixed=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.14/argparse.py:2047: in _parse_known_args2
namespace, args = self._parse_known_args(args, namespace, intermixed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.14/argparse.py:2298: in _parse_known_args
start_index = consume_optional(start_index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.14/argparse.py:2222: in consume_optional
take_action(action, args, option_string)
/usr/lib/python3.14/argparse.py:2123: in take_action
action(self, namespace, argument_values, option_string)
/usr/lib/python3.14/argparse.py:1177: in __call__
parser.exit()
[...]
self = ArgumentParser(prog='eyeD3', usage=None, description=None, formatter_class=<class 'argparse.RawDescriptionHelpFormatter'>, conflict_handler='error', add_help=True), status = 0, message = None
def exit(self, status=0, message=None):
if message:
self._print_message(message, _sys.stderr)
> _sys.exit(status)
E SystemExit: 0
/usr/lib/python3.14/argparse.py:2772: SystemExit
During handling of the above exception, another exception occurred:
def testHelpOutput():
for arg in ["--help", "-h"]:
with RedirectStdStreams() as out:
try:
args, parser = main.parseCommandLine([arg])
except SystemExit as ex:
# __exit__ seeks and we're not there yet so...
out.stdout.seek(0)
> assert out.stdout.read().startswith(u"usage:")
E AssertionError: assert False
E + where False = <built-in method startswith of str object at 0x562cb3f8bd90>('usage:')
E + where <built-in method startswith of str object at 0x562cb3f8bd90> = '\x1b[1;34musage: \x1b[0m\x1b[1;35meyeD3\x1b[0m [\x1b[32m-h\x1b[0m] [\x1b[36m--version\x1b[0m] [\x1b[36m--about\x1b[0m...\x1b[1;36m--preserve-file-times\x1b[0m\n When writing, do not update file modification times.\n'.startswith
E + where '\x1b[1;34musage: \x1b[0m\x1b[1;35meyeD3\x1b[0m [\x1b[32m-h\x1b[0m] [\x1b[36m--version\x1b[0m] [\x1b[36m--about\x1b[0m...\x1b[1;36m--preserve-file-times\x1b[0m\n When writing, do not update file modification times.\n' = <built-in method read of _io.StringIO object at 0x7fa6277a3d00>()
E + where <built-in method read of _io.StringIO object at 0x7fa6277a3d00> = <_io.StringIO object at 0x7fa6277a3d00>.read
E + where <_io.StringIO object at 0x7fa6277a3d00> = <tests.RedirectStdStreams object at 0x7fa6275794e0>.stdout
tests/test_main.py:25: AssertionError
[...]
Regards!
Pinned Comments