odd testing failure report

18 views
Skip to first unread message

Chris Smith

unread,
Sep 30, 2023, 10:20:45 PM9/30/23
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 _______________
3363File "/home/runner/work/sympy/sympy/sympy/vector/basisdependent.py", line 182, in sympy.vector.basisdependent.BasisDependent.factor
3364Failed example:
3365 factor((x**2 + 4*x + 4)**10000000*(x**2 + 1))
3366Expected:
3367 (2 + x)**20000000*(1 + x**2)
3368Got:
3369 (x + 2)**20000000*(x**2 + 1)
3370**********************************************************************
3371File "/home/runner/work/sympy/sympy/sympy/vector/basisdependent.py", line 202, in sympy.vector.basisdependent.BasisDependent.factor
3372Failed example:
3373 factor(5*x + 3*exp(2 - 7*x), deep=True, fraction=False)
3374Expected:
3375 5*x + 3*exp(2)*exp(-7*x)
3376Got:
3377 3*exp(2)*exp(-7*x) + 5*x
3378________________________________________________________________________________
3379_____________ sympy.vector.basisdependent.BasisDependent.simplify ______________
3380File "/home/runner/work/sympy/sympy/sympy/vector/basisdependent.py", line 112, in sympy.vector.basisdependent.BasisDependent.simplify
3381Failed example:
3382 a
3383Expected:
3384 (x + x**2)/(x*cos(y)**2 + x*sin(y)**2)
3385Got:
3386 (x**2 + x)/(x*sin(y)**2 + x*cos(y)**2)
3387**********************************************************************
3388File "/home/runner/work/sympy/sympy/sympy/vector/basisdependent.py", line 121, in sympy.vector.basisdependent.BasisDependent.simplify
3389Failed example:
3390 trigsimp(a)
3391Expected:
3392 (x + x**2)/x
3393Got:
3394 (x**2 + x)/x
```
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