Skip to content

Instantly share code, notes, and snippets.

@rmcgibbo
Created May 7, 2021 22:22
Show Gist options
  • Save rmcgibbo/ce86d8c61b4e26a25872ae05de62ceba to your computer and use it in GitHub Desktop.
Save rmcgibbo/ce86d8c61b4e26a25872ae05de62ceba to your computer and use it in GitHub Desktop.
python3.8-tld> ============================= test session starts ==============================
python3.8-tld> platform darwin -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
python3.8-tld> rootdir: /private/tmp/nix-build-python3.8-tld-0.12.5.drv-0/tld-0.12.5
python3.8-tld> plugins: Faker-6.6.2, cov-2.11.1
python3.8-tld> collected 27 items
python3.8-tld> src/tld/tests/test_core.py ..........F................ [100%]
python3.8-tld> =================================== FAILURES ===================================
python3.8-tld> ____________________ TestCore.test_19_update_tld_names_cli _____________________
python3.8-tld> self = <tld.tests.test_core.TestCore testMethod=test_19_update_tld_names_cli>
python3.8-tld> args = (), kwargs = {}
python3.8-tld> def inner(self, *args, **kwargs):
python3.8-tld> """Inner."""
python3.8-tld> if not is_internet_available():
python3.8-tld> LOGGER.debug('\n\n%s', func.__name__)
python3.8-tld> LOGGER.debug('============================')
python3.8-tld> if func.__doc__:
python3.8-tld> LOGGER.debug('""" %s """', func.__doc__.strip())
python3.8-tld> LOGGER.debug('----------------------------')
python3.8-tld> LOGGER.debug("Skipping because no Internet connection available.")
python3.8-tld> LOGGER.debug('\n++++++++++++++++++++++++++++')
python3.8-tld> return None
python3.8-tld> > result = func(self, *args, **kwargs)
python3.8-tld> src/tld/tests/base.py:72:
python3.8-tld> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
python3.8-tld> src/tld/tests/base.py:26: in inner
python3.8-tld> result = func(self, *args, **kwargs)
python3.8-tld> src/tld/tests/test_core.py:718: in test_19_update_tld_names_cli
python3.8-tld> res = update_tld_names_cli()
python3.8-tld> src/tld/utils.py:131: in update_tld_names_cli
python3.8-tld> args = parser.parse_args(sys.argv[1:])
python3.8-tld> /nix/store/l4q9nfrq3wz4qgk5ikbzfcs7iqdb32y1-python3-3.8.9/lib/python3.8/argparse.py:1771: in parse_args
python3.8-tld> self.error(msg % ' '.join(argv))
python3.8-tld> /nix/store/l4q9nfrq3wz4qgk5ikbzfcs7iqdb32y1-python3-3.8.9/lib/python3.8/argparse.py:2521: in error
python3.8-tld> self.exit(2, _('%(prog)s: error: %(message)s\n') % args)
python3.8-tld> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
python3.8-tld> self = ArgumentParser(prog='__main__.py', usage=None, description='Update TLD names', formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
python3.8-tld> status = 2
python3.8-tld> message = '__main__.py: error: unrecognized arguments: --ignore=src/tld/tests/test_commands.py\n'
python3.8-tld> def exit(self, status=0, message=None):
python3.8-tld> if message:
python3.8-tld> self._print_message(message, _sys.stderr)
python3.8-tld> > _sys.exit(status)
python3.8-tld> E SystemExit: 2
python3.8-tld> /nix/store/l4q9nfrq3wz4qgk5ikbzfcs7iqdb32y1-python3-3.8.9/lib/python3.8/argparse.py:2508: SystemExit
python3.8-tld> ----------------------------- Captured stderr call -----------------------------
python3.8-tld> usage: __main__.py [-h] [--fail-silently] [parser_uid]
python3.8-tld> __main__.py: error: unrecognized arguments: --ignore=src/tld/tests/test_commands.py
python3.8-tld> =========================== short test summary info ============================
python3.8-tld> FAILED src/tld/tests/test_core.py::TestCore::test_19_update_tld_names_cli - S...
python3.8-tld> ========================= 1 failed, 26 passed in 1.12s =========================
bui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment