You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TST: pytest different behavior running all or only specific tests #4965
It's the first time in a long time that I run the entire test suite instead of by directory or modules.
I get many failures when running the entire test suite, but they don't show up when I run individual subpackages, folders or modules.
It's not clear to me what's going on, and entire test runs take a long time to quickly investigate.
(I ran the test suite on the commandline with pytest path_to_statsmodels but the windows shell shows at the end only a very small part of the output. During the run I got results like
running statsmodels.test() in IDLE, I get 140 failed, 6328 passed, 130 skipped, 4 xfailed, 1 xpassed, 470 error in 1403.47 seconds
with e.g. the same fails as above for test_gee.py
same result, but this time logged to a file. 135 failed, 6284 passed, 174 skipped, 4 xfailed, 1 xpassed, 470 error in 792.08 seconds
Looking more closely at the results, I looks like those errors and failures are all or mostly DeprecationWarnings because of my older pandas or other Warnings.
Is there a setting that Warnings are turned into errors or failures when running the entire test suite?
And how can I turn that off?
maybe my pytest is too old, folder name: pytest-3.0.3.dist-info
warnings capture in pytest mentions added in 3.1
(I didn't find any options to change the behavior, and going through the pytest docs seems to show things that don't work for my version.)
(I'm not going to run entire test suite on a regular basis anyway)
Not closed,
We only found a few problems with missing random seed when using a random test sequence.
The problem that I had in this issue with running all unit tests locally is different, and is most likely a setup problem or it requires a newer pytest.
I will eventually try again and get a newer pytest, but not for now.
>pytest path_to_statsmodels\statsmodels -r a --skip-examples > pytest_20180916_1.log.txt 2>&1
I have fails that are all in knockoff with cvxopt which is buggy in my older version 12 failed, 6979 passed, 167 skipped, 4 xfailed, 1 xpassed, 268 warnings in 929.00 seconds
Activity
bashtage commentedon Aug 22, 2018
Examples?
Try
I regularly run the full suite without issues.
josef-pkt commentedon Aug 22, 2018
...\tmp>pytest M:...\statsmodels_py34_pr\statsmodels --skip-examples > pytest_20180822.log.txt 2>&1
same result, but this time logged to a file.
135 failed, 6284 passed, 174 skipped, 4 xfailed, 1 xpassed, 470 error in 792.08 secondsLooking more closely at the results, I looks like those errors and failures are all or mostly DeprecationWarnings because of my older pandas or other Warnings.
Is there a setting that Warnings are turned into errors or failures when running the entire test suite?
And how can I turn that off?
josef-pkt commentedon Aug 22, 2018
maybe my pytest is too old, folder name:
pytest-3.0.3.dist-infowarnings capture in pytest mentions added in 3.1
(I didn't find any options to change the behavior, and going through the pytest docs seems to show things that don't work for my version.)
(I'm not going to run entire test suite on a regular basis anyway)
bashtage commentedon Aug 22, 2018
Probably too old. Warnings are suppressed by default when using .test() methods.
jbrockmendel commentedon Sep 8, 2018
Possibly related #5110
jbrockmendel commentedon Sep 12, 2018
Closed by #5148?
josef-pkt commentedon Sep 12, 2018
Not closed,
We only found a few problems with missing random seed when using a random test sequence.
The problem that I had in this issue with running all unit tests locally is different, and is most likely a setup problem or it requires a newer pytest.
I will eventually try again and get a newer pytest, but not for now.
josef-pkt commentedon Sep 16, 2018
I updated to pytest 3.8 and the failures are gone
>pytest path_to_statsmodels\statsmodels -r a --skip-examples > pytest_20180916_1.log.txt 2>&1I have fails that are all in knockoff with cvxopt which is buggy in my older version
12 failed, 6979 passed, 167 skipped, 4 xfailed, 1 xpassed, 268 warnings in 929.00 secondsjosef-pkt commentedon Sep 16, 2018
see also #5215 minimum version for pytest