Skip to content

properly parse and format the nodeid of errored test modules#15

Merged
keewis merged 2 commits intoscientific-python:mainfrom
keewis:errors-in-top-level-module
Jan 21, 2023
Merged

properly parse and format the nodeid of errored test modules#15
keewis merged 2 commits intoscientific-python:mainfrom
keewis:errors-in-top-level-module

Conversation

@keewis
Copy link
Copy Markdown
Contributor

@keewis keewis commented Jan 21, 2023

Errored test modules (modules that raise an error on import) seem to have a nodeid containing just the path. The parsing function assumed otherwise, so it failed.

@jrbourbeau, I think this fixes #14, but I can't reproduce the error from the CI locally so I can't verify. The error from the script does look very similar to the one produced by a test module containing just

raise ValueError

though, so I'm pretty confident it does (and if I'm wrong we can just iterate).

@keewis keewis merged commit e358fd5 into scientific-python:main Jan 21, 2023
@keewis keewis deleted the errors-in-top-level-module branch January 21, 2023 15:58
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

Successfully merging this pull request may close these issues.

ValueError: unknown test id

1 participant