Groups
Groups
Sign in
Groups
Groups
sympy
Conversations
About
Send feedback
Help
odd testing failure report
18 views
Skip to first unread message
Chris Smith
unread,
Sep 30, 2023, 10:20:45 PM
9/30/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sympy
Has anyone else noticed a discrepancy between what is reported in a test run report and what is actually wrong in the code?
Here is the report for doctests from #25726 hash
ef34167
.
```
______________ sympy.vector.basisdependent.BasisDependent.factor _______________
3363
File "/home/runner/work/sympy/sympy/sympy/vector/basisdependent.py", line 182, in sympy.vector.basisdependent.BasisDependent.factor
3364
Failed example:
3365
factor((x**2 + 4*x + 4)**10000000*(x**2 + 1))
3366
Expected:
3367
(2 + x)**20000000*(1 + x**2)
3368
Got:
3369
(x + 2)**20000000*(x**2 + 1)
3370
**********************************************************************
3371
File "/home/runner/work/sympy/sympy/sympy/vector/basisdependent.py", line 202, in sympy.vector.basisdependent.BasisDependent.factor
3372
Failed example:
3373
factor(5*x + 3*exp(2 - 7*x), deep=True, fraction=False)
3374
Expected:
3375
5*x + 3*exp(2)*exp(-7*x)
3376
Got:
3377
3*exp(2)*exp(-7*x) + 5*x
3378
________________________________________________________________________________
3379
_____________ sympy.vector.basisdependent.BasisDependent.simplify ______________
3380
File "/home/runner/work/sympy/sympy/sympy/vector/basisdependent.py", line 112, in sympy.vector.basisdependent.BasisDependent.simplify
3381
Failed example:
3382
a
3383
Expected:
3384
(x + x**2)/(x*cos(y)**2 + x*sin(y)**2)
3385
Got:
3386
(x**2 + x)/(x*sin(y)**2 + x*cos(y)**2)
3387
**********************************************************************
3388
File "/home/runner/work/sympy/sympy/sympy/vector/basisdependent.py", line 121, in sympy.vector.basisdependent.BasisDependent.simplify
3389
Failed example:
3390
trigsimp(a)
3391
Expected:
3392
(x + x**2)/x
3393
Got:
3394
(x**2 + x)/x
3395
```
But those doctest lines are not in basisdependent (some are in polytools and some in simplify). I'm not sure of the source of this problem: why is it reporting the wrong file. It is losing track of the file in which the error occured.
/c
Reply all
Reply to author
Forward
0 new messages