-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Fix optional internet tests. #13884
Comments
comment:1
So this doesn't happen again, re-enable these via #13540. |
comment:2
Just for clarification, this one is broken, but not because of the internet, and has been for a while. This was originally noticed (and fixed) by Minh while reviewing #7771 in this patch. It wasn't clear how to proceed, as you can see by reading the comments there. |
comment:3
Haha! And the first one is not really a problem, just a logic issue.
What happens is that when the test is done, the deprecation warning, which only occurs once, occurs with the internet test. This is a two-character fix. I'll try to see if I can fix any others along with it. |
comment:4
Next: Considering that William at some point changed the file in this test
to
I think we'll be okay just changing this one too. |
comment:5
Just for reference, in general this file (sloane.py) is almost completely undocumented and #10358 is supposed to update with respect to this. So this is fully known. |
comment:6
The finance errors seem mostly due to a change in how Google uses
At least this tells us when William added the finance stuff! |
comment:7
And finally, the combinat error is due to the broken |
This comment has been minimized.
This comment has been minimized.
comment:9
Google now apparently does not return data that is more than a certain number of years old - or at least the interface must have changed?
In fact, according to this blog post,
And although the data is still there if one uses e.g. a URL like this downloading the CSV only gives you so much. What should we do, oh many Sage devels who are Google employees? ;-) I can fix some stuff but don't want to fix more of this if it's going to be gone eventually anyway. |
comment:10
Okay, the following patch fixes everything not from #10358, #7771, and the change in the CSV files that the Google Finance API produces. (Note that Apple must have had a 4-1 stock split at some point as well.) In some cases I could circumvent the latter when the point wasn't testing historical data, but there are still two failures.
I don't know if these are fixable. |
comment:11
Attachment: trac_13884.patch.gz Patchbot, apply trac_13884.patch I'd appreciate feedback; however, the easiest to me seems to be to review this and then open a new ticket to fix the Google finance interface csv download issue - if that is even possible. |
This comment has been minimized.
This comment has been minimized.
Author: Karl-Dieter Crisman |
comment:12
Okay, in the meantime the Google stuff has changed yet again (???), and we get the following bizarre error:
This one baffles me; even doing |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:15
Attachment: trac_13884_addon1.patch.gz I think this solves the problem in the integral file. |
comment:16
The add-on patch is good. I'm not sure why that should make a difference, but it did. I'm tempted to have us just add the preparser test to the integral one and then open a new ticket for stock.py, which clearly isn't functioning properly in any case (not just a problem of changed values any more). Frederic, do you want to create a patch like that? |
comment:17
A partial fix is better than no fix at all, IMHO. |
comment:18
I agree, no need to fix all of them before any of them go in. |
Commit: |
Branch: u/chapoton/13884 |
New commits:
|
comment:21
What test command do you use? With
|
Reviewer: Ralf Stephan, Volker Braun |
comment:22
Sounds good to me; somebody interested in finance can take up the stock.py failures. |
Changed branch from u/chapoton/13884 to |
This comment has been minimized.
This comment has been minimized.
Changed commit from |
Untested = broken.
The files
sage/databases/sloane.py
andsage/combinat/words/paths.py
are really covered by #10358.The file
sage/interfaces/r.py
is a situation needing clarification at #7771.This ticket is to fix the minor issues in the integral, preparer, and stock files.
Apply:
Component: doctest coverage
Author: Karl-Dieter Crisman
Branch:
90a4128
Reviewer: Ralf Stephan, Volker Braun
Issue created by migration from https://trac.sagemath.org/ticket/13884
The text was updated successfully, but these errors were encountered: