Skip to content

Wrong type argument: stringp, nil #38

@twmr

Description

@twmr

When pytest-run is run while the current buffer is e.g. a magit buffer, the following error is output

Wrong type argument: stringp, nil

This is because pytest-find-test-runner-names runs (file-name-directory buffer-file-name), which raises the above error when run inside a buffer that doesn't have a buffer-file-name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions