Skip to content

pytest-module fails if file path has a space in it #11

@alxempirical

Description

@alxempirical

https://github.com/ionrock/pytest-el/blob/master/pytest.el#L118

(mapconcat (lambda (test) (substring test (string-width where)))
           (split-string tests) " ") ""))

E.g., (pytest-module "/Users/alx/Google Drive/alien/probcomp/bayeslite/tests/tests/test_bdb.py" nil) results in Args out of range: "/Users/alx/Google", 49, nil.

It should probably check whether tests is a list, and use that in place of the split-string output if so.

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