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 
<https://github.com/sympy/sympy/pull/25726/commits/ef34167c2ab2bbec253b0a135707b4d7875022d8>
 .
```
______________ sympy.vector.basisdependent.BasisDependent.factor 
_______________ 
3363 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3364>File
 
"/home/runner/work/sympy/sympy/sympy/vector/basisdependent.py", line 182, 
in sympy.vector.basisdependent.BasisDependent.factor 
3364 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3365>Failed
 
example: 
3365 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3366>
 
factor((x**2 + 4*x + 4)**10000000*(x**2 + 1)) 
3366 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3367>Expected:
 

3367 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3368>
 
(2 + x)**20000000*(1 + x**2) 
3368 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3369>Got:
 

3369 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3370>
 
(x + 2)**20000000*(x**2 + 1) 
3370 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3371>**********************************************************************
 

3371 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3372>File
 
"/home/runner/work/sympy/sympy/sympy/vector/basisdependent.py", line 202, 
in sympy.vector.basisdependent.BasisDependent.factor 
3372 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3373>Failed
 
example: 
3373 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3374>
 
factor(5*x + 3*exp(2 - 7*x), deep=True, fraction=False) 
3374 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3375>Expected:
 

3375 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3376>
 
5*x + 3*exp(2)*exp(-7*x) 
3376 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3377>Got:
 

3377 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3378>
 
3*exp(2)*exp(-7*x) + 5*x 
3378 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3379>________________________________________________________________________________
 

3379 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3380>_____________
 
sympy.vector.basisdependent.BasisDependent.simplify ______________ 
3380 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3381>File
 
"/home/runner/work/sympy/sympy/sympy/vector/basisdependent.py", line 112, 
in sympy.vector.basisdependent.BasisDependent.simplify 
3381 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3382>Failed
 
example: 
3382 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3383>
 
a 
3383 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3384>Expected:
 

3384 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3385>
 
(x + x**2)/(x*cos(y)**2 + x*sin(y)**2) 
3385 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3386>Got:
 

3386 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3387>
 
(x**2 + x)/(x*sin(y)**2 + x*cos(y)**2) 
3387 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3388>**********************************************************************
 

3388 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3389>File
 
"/home/runner/work/sympy/sympy/sympy/vector/basisdependent.py", line 121, 
in sympy.vector.basisdependent.BasisDependent.simplify 
3389 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3390>Failed
 
example: 
3390 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3391>
 
trigsimp(a) 
3391 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3392>Expected:
 

3392 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3393>
 
(x + x**2)/x 
3393 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3394>Got:
 

3394 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3395>
 
(x**2 + x)/x 
3395 
<https://github.com/sympy/sympy/actions/runs/6364603289/job/17280995696#step:6:3396>
```
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

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/d6e64e3d-6a6c-49f3-9766-bdc3854068c0n%40googlegroups.com.

Reply via email to