doctests failing when called without "file_or_dir" #13660
-
Hi all, We are using pytest for a number of years for obspy, the tests are usually called by an entry-point script "obspy-runtests" that calls Between mid july and now, there must have been a change "somewhere" that makes all our CIs go 🔴 for the doctests. The failed tests all concern doctests' outputs, which don't respect the The obspy-runtests changes directory to the checking if
So the error comes between calling pytest WITH or WITHOUT a target directory. I tried downgrading pytest to 7.4.4, pytest-json-report & numpy & scipy etc... no avail. Same errors. So I believe it's indeed not a pyest error but I'm hoping someone would have encountered a similar issue and could help? Thanks for any input! Thomas (ref: obspy/obspy#3600) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Edit, trying some more stuff: for
but using the same command, the
From this, it looks like the numpy legacy stuff is not passed "to subfolders" ? uh? |
Beta Was this translation helpful? Give feedback.
-
edit again, sorry for the noise, it's probably an obspy-obspy issue, the doctest issues are only with obspy objects |
Beta Was this translation helpful? Give feedback.
-
Final solution: as it was linked to how chunking of the tests (either using directories, or using xdist), I started to search in dependencies... and found the culprit in pyshp 3.0 :
Which, I guess, gets defined everywhere & for everything. Will report. |
Beta Was this translation helpful? Give feedback.
Final solution: as it was linked to how chunking of the tests (either using directories, or using xdist), I started to search in dependencies... and found the culprit in pyshp 3.0 :
Which, I guess, gets defined everywhere & for everything. Will report.