Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Even if, didn't enable --launchable option, this module was loaded. #17

@Konboi

Description

@Konboi
$ pytest --help
...
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/pytest_launchable/launchable_test_context.py", line 242, in pytest_configure
    test_target = config.option.file_or_dir[0]
TypeError: 'NoneType' object is not subscriptable
full log
$ pytest --help
Traceback (most recent call last):
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/bin/pytest", line 8, in <module>
    sys.exit(console_main())
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/_pytest/config/__init__.py", line 190, in console_main
    code = main()
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/_pytest/config/__init__.py", line 167, in main
    ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/pluggy/_callers.py", line 60, in _multicall
    return outcome.get_result()
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/pluggy/_result.py", line 60, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/_pytest/helpconfig.py", line 152, in pytest_cmdline_main
    config._do_configure()
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/_pytest/config/__init__.py", line 1037, in _do_configure
    self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/pluggy/_hooks.py", line 277, in call_historic
    res = self._hookexec(self.name, self.get_hookimpls(), kwargs, False)
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/pluggy/_callers.py", line 60, in _multicall
    return outcome.get_result()
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/pluggy/_result.py", line 60, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/Users/yabuki-ryosuke/.asdf/installs/python/3.9.16/lib/python3.9/site-packages/pytest_launchable/launchable_test_context.py", line 242, in pytest_configure
    test_target = config.option.file_or_dir[0]
TypeError: 'NoneType' object is not subscriptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions