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

DOC: fix runtests guidelines. #13445

Merged
merged 2 commits into from Jan 29, 2021
Merged

Conversation

V0lantis
Copy link
Contributor

@V0lantis V0lantis commented Jan 27, 2021

Reference issue

Fixes #13440.

What does this implement/fix?

This changes runtests guidelines. The argument to the -t option should be a Python name (i.e. a dotted Python module path), not a file path.

@mdhaber mdhaber closed this Jan 27, 2021
@mdhaber mdhaber reopened this Jan 27, 2021
@mdhaber
Copy link
Contributor

mdhaber commented Jan 27, 2021

To retrigger CI. I think an unrelated test was failing on master when this built, but that has been patched.

@tylerjereddy tylerjereddy added the Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org label Jan 28, 2021
Copy link
Contributor

@tylerjereddy tylerjereddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the discussion in the matching issue, using the Python-name approach as per the changes here does seem a bit less likely to fail since it should work for both in-place builds and tests of installed builds without having to specify long absolute paths to build dir modules.

doc/source/dev/contributor/runtests.rst Outdated Show resolved Hide resolved
@tylerjereddy tylerjereddy added this to the 1.7.0 milestone Jan 29, 2021
@tylerjereddy
Copy link
Contributor

Seems a bit more resilient to the mode of SciPy build/installation, and CI is green, so let's try this doc update.

@tylerjereddy tylerjereddy merged commit e9dac0a into scipy:master Jan 29, 2021
@tylerjereddy
Copy link
Contributor

Thanks @V0lantis

@V0lantis V0lantis deleted the fix_runtest_doc branch February 8, 2021 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org
Projects
None yet
Development

Successfully merging this pull request may close these issues.

python runtest.py -t path-to-test.py failed
3 participants