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

terminal: fix crash in header reporting when testpaths is used without cli arguments #7816

Closed

Commits on Sep 29, 2020

  1. terminal: fix crash in header reporting when testpaths is used withou…

    …t cli arguments
    
    Regressed in 6.1.0 in 62e249a.
    The `x` is an `str` but is expected to be a `pathlib.Path`. Not caught
    by mypy because `config.getini()` returns `Any`.
    
    The code was actually wrong before, even `py.path.local`'s `bestrelpath`
    function expects a `py.path.local`, not an `str`. But it had some weird
    `try ... except AttributeError` fallback which just returns the
    argument, i.e. it was a no-op.
    bluetech committed Sep 29, 2020
    Configuration menu
    Copy the full SHA
    332f059 View commit details
    Browse the repository at this point in the history