-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Series: Resolves ValueError during limit evaluation #18978
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
Conversation
|
✅ Hi, I am the SymPy bot (v158). I'm here to help you write a release notes entry. Please read the guide on how to write release notes. Your release notes are in good order. Here is what the release notes will look like:
This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.6. Note: This comment will be updated with the latest check if you edit the pull request. You need to reload the page to see it. Click here to see the pull request description that was parsed.
Update The release notes on the wiki have been updated. |
|
This is not timing out on my machine. |
Co-Authored-By: Kalevi Suominen <jksuom@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #18978 +/- ##
============================================
+ Coverage 64.32% 75.751% +11.43%
============================================
Files 647 647
Lines 168592 168615 +23
Branches 39725 39732 +7
============================================
+ Hits 108439 127728 +19289
+ Misses 53996 35326 -18670
+ Partials 6157 5561 -596 |
|
Thanks, looks good. |
|
The test added here hangs intermittently on Python 3.5: This leads to sporadic Travis failures. I can only reproduce this on 3.5 and it only failed on Travis for 3.5. That would suggest that dict ordering plays a role in the non-determinism. |
|
If the cause of the hang can not be identified quickly then it would be better to xfail the test on Python 3.5 as it will interfere with other PRs. |
|
During the Travis build of #18754 there was a failing test related to the issue resolved. See : https://travis-ci.org/github/sympy/sympy/jobs/668013022?utm_medium=notification&utm_source=github_status |
|
Can you please elaborate on the issue a bit more? Why is this hanging on python 3.5? |
|
It is the same failure as seen on Travis in the first commit of this PR. Python 3.5 has non-deterministic dict-ordering so somewhere there is likely to be a code-path that iterates over a dict and hangs depending on the order of the items from the dict. |
|
Okay, so what could be a possible solution. |
Identify and fix the cause of the hang or xfail/skip the test |
The test added in sympy#18978 hangs intermittently on Python 3.5. This commit XFAILS that test until the cause of the hang can be identified because it is causing many failed builds on master.
|
I've opened #18990 to XFAIL the test that was added here. I don't know whether this means that the issue closed by this PR should be reopened or whether a new issue should be opened instead. |
|
|
This is the problem, without any added simplification, the limit is evaluated properly on python 3.5, but not on python 3.7 |
|
I think it's best to either comment on the re-opened issue or close that and open a new issue. |
|
okay will comment on the re-opened issue |
Fixes: #14811
First of all, it no longer raises any exception as mentioned in the issue.
But, the actual issue is that it is
returned unevaluated due to a ValueError.Brief description of what is fixed or changed
Previously:
A bit of simplification was missing in
limitinf() function of gruntz.pywhich was causingValueErrorand thus, the result was an unevaluated form.Now this evaluates correctly:
Other Comments
Regression Test has been added.
Release Notes
limitinf() function of gruntz.pyresolvingValueError