-
Notifications
You must be signed in to change notification settings - Fork 33
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
TST: Option to disable using C-extension for debugging #268
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #268 +/- ##
==========================================
+ Coverage 80.33% 80.35% +0.01%
==========================================
Files 5 5
Lines 1017 1023 +6
==========================================
+ Hits 817 822 +5
- Misses 200 201 +1 ☔ View full report in Codecov by Sentry. |
This comment was marked as resolved.
This comment was marked as resolved.
OK now the jobs ignoring C-ext sees the errors #265 is trying to fix. If you want this, please SQUASH AND MERGE. |
I think we need this. Thanks! However, I think I need to fix failing Python version of the C code first. So let's wait with merging a little. |
I rebased and cleaned things up. I think this is ready, but if #271 gets merged first, then I will have to rebase again. |
For the record, another option I considered was introducing Also see: https://docs.astropy.org/en/latest/config/index.html |
Wouldn't it be easier to just not build |
How do you do that conditionally, on-demand? |
I agree. The ability to test the python code and |
Modify Lines 115 to 119 in 49f8c89
depending on the environment variable value Requires re-building but isn't it what is done anyway for each CI test? |
Re: #268 (comment) I don't see how that is simpler than what I am proposing. |
Also, what I am proposing here allows you to test with and without C-extension locally without rebuilding, as @jhunkeler said above. |
Because it is a single change in a single module. |
Maybe sometimes we want to see if tests behave the same with or without C-extensions.