Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests failing "got an unexpected keyword argument allow_abbrev" #41

Open
gustavosr98 opened this issue Oct 18, 2023 · 0 comments
Open

Comments

@gustavosr98
Copy link

Following

  1. https://github.com/canonical/charmed-kubeflow-uats#running-inside-a-notebook
  2. https://github.com/canonical/charmed-kubeflow-uats/blob/main/tests/README.md
$ pytest
Traceback (most recent call last):
  File "/opt/conda/bin/pytest", line 8, in <module>
    sys.exit(console_main())
  File "/opt/conda/lib/python3.8/site-packages/_pytest/config/__init__.py", line 192, in console_main
    code = main()
  File "/opt/conda/lib/python3.8/site-packages/_pytest/config/__init__.py", line 150, in main
    config = _prepareconfig(args, plugins)
  File "/opt/conda/lib/python3.8/site-packages/_pytest/config/__init__.py", line 331, in _prepareconfig
    config = pluginmanager.hook.pytest_cmdline_parse(
  File "/opt/conda/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
    return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
  File "/opt/conda/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/opt/conda/lib/python3.8/site-packages/pluggy/_callers.py", line 130, in _multicall
    teardown[0].send(outcome)
  File "/opt/conda/lib/python3.8/site-packages/_pytest/helpconfig.py", line 104, in pytest_cmdline_parse
    config: Config = outcome.get_result()
  File "/opt/conda/lib/python3.8/site-packages/pluggy/_result.py", line 114, in get_result
    raise exc.with_traceback(exc.__traceback__)
  File "/opt/conda/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
    res = hook_impl.function(*args)
  File "/opt/conda/lib/python3.8/site-packages/_pytest/config/__init__.py", line 1075, in pytest_cmdline_parse
    self.parse(args)
  File "/opt/conda/lib/python3.8/site-packages/_pytest/config/__init__.py", line 1425, in parse
    self._preparse(args, addopts=addopts)
  File "/opt/conda/lib/python3.8/site-packages/_pytest/config/__init__.py", line 1290, in _preparse
    self._initini(args)
  File "/opt/conda/lib/python3.8/site-packages/_pytest/config/__init__.py", line 1163, in _initini
    ns, unknown_args = self._parser.parse_known_and_unknown_args(
  File "/opt/conda/lib/python3.8/site-packages/_pytest/config/argparsing.py", line 171, in parse_known_and_unknown_args
    optparser = self._getparser()
  File "/opt/conda/lib/python3.8/site-packages/_pytest/config/argparsing.py", line 121, in _getparser
    optparser = MyOptionParser(self, self.extra_info, prog=self.prog)
  File "/opt/conda/lib/python3.8/site-packages/_pytest/config/argparsing.py", line 411, in __init__
    super().__init__(
TypeError: __init__() got an unexpected keyword argument 'allow_abbrev'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant