-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
doctesting with pytest fails on system install of sage #33521
Comments
comment:1
I have tried inserting the right option in
without success. Suggestions welcome. |
comment:4
I think if we include #33531 it can join the list of less urgent stuff to fix about |
comment:5
I just realised it may make more sense to just disable |
comment:6
I'm not sure about the exact use case of |
comment:7
Replying to @kiwifb:
Can you please try running pytest with |
comment:8
|
comment:9
Replying to @kiwifb:
Yes, I agree |
Dependencies: #31924 |
comment:10
Setting #31924 as a dependency because it modifies |
comment:11
Need to get on with that ticket. Not sure how long it will take me to get to it, I am trying to diagnose flaky RAM on my main dev machine. Compilations breaking in random places is a good signal of issue. |
comment:12
Replying to @kiwifb:
Thanks for the explanation. Pytest is able to test everything that can be imported using importlib, so testing the existing sage install should be possible as well. However, the "normal" setup would be to run pytest on the source code of the tests but use the installed version of the package (this is for example how pytest works in the context of tox environments). Maybe its worth a try to distribute/install the tox.ini file as well, or export the pytest config to I cannot judge if it would be okay to skip pytest for |
comment:13
There are two major use cases for |
Author: Matthias Koeppe |
Changed dependencies from #31924 to none |
Commit: |
comment:19
I have been busy the last couple of weeks and completely forgotten about this ticket. I will try to do a proper review later today. |
comment:20
It works as expected for me in sage-on-gentoo. pytest are not run on system install lacking the right configuration files anymore. |
Reviewer: François Bissey |
comment:21
Thank you! |
Changed branch from u/mkoeppe/doctesting_with_pytest_fails_on_system_install_of_sage to |
pytest assumes the directory containing the code to be tested is writable. This is not currently the case on sage-on-distro were most of the time testing is done after installing on the system.
Here is a typical result
pytest can be started with some option to change the location of the cache directory
-o cache_dir=...
. pytest is currently called fromsage-runtest
and this is where we may want to apply any changes.CC: @tobiasdiez @orlitzky @dimpase
Component: distribution
Author: Matthias Koeppe
Branch/Commit:
84d3d9e
Reviewer: François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/33521
The text was updated successfully, but these errors were encountered: