Repository navigation
MAINT: Fix warnings - #5135
MAINT: Fix warnings#5135
Conversation
|
This should silence many of the deluge of warnings that Pytest finally started letting through. There will still be work to do but travis should be able to complete. |
|
xref #5132 |
Codecov Report
@@ Coverage Diff @@
## master #5135 +/- ##
=========================================
Coverage ? 81.41%
=========================================
Files ? 582
Lines ? 90389
Branches ? 10114
=========================================
Hits ? 73594
Misses ? 14494
Partials ? 2301
Continue to review full report at Codecov.
|
Replace random_integers Silence matrix warnings Remove invalid escape text Remove future invalid array access Remove attempt to access ix attribute Import comb from corect location (scipy.special)
Remove redundant patsy code Fix scipy compat issues related to function location changes Change trend to 'n' in statespace models
Suppress warning created by Patsy
Suppress warnings requiring changes in upstream packages
51aba38 to
cdeb3d1
Compare
|
@josef-pkt @jbrockmendel This is ready now. It fixes all future/pending dep/etc warnings and silences all of the upstream generated warnings (tuple access in scipy and mkl_fft, categorical in patsy). |
|
LGTM based on quick skimming |
| import warnings | ||
|
|
||
| # ignore PendingDeprecationWarning due to matrix conversion in SciPy | ||
| pytestmark = pytest.mark.filterwarnings('ignore:matrix subclass') |
There was a problem hiding this comment.
just to understand:
Does this apply to the entire module?
|
It applies to all tests in that file only.
…On Fri, Sep 7, 2018, 14:24 Josef Perktold ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In statsmodels/stats/tests/test_corrpsd.py
<#5135 (comment)>
:
> @@ -17,6 +18,9 @@
import warnings
+# ignore PendingDeprecationWarning due to matrix conversion in SciPy
+pytestmark = pytest.mark.filterwarnings('ignore:matrix subclass')
just to understand:
Does this apply to the entire module?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5135 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFU5RTFm6PRBOZYvOP5WugLu_i6VlT5sks5uYnN_gaJpZM4WeAxe>
.
|
|
It will match any warning starting with 'matrix subclass'
On Fri, Sep 7, 2018, 14:25 Kevin Sheppard <[email protected]>
wrote:
… It applies to all tests in that file only.
On Fri, Sep 7, 2018, 14:24 Josef Perktold ***@***.***>
wrote:
> ***@***.**** commented on this pull request.
> ------------------------------
>
> In statsmodels/stats/tests/test_corrpsd.py
> <#5135 (comment)>
> :
>
> > @@ -17,6 +18,9 @@
>
> import warnings
>
> +# ignore PendingDeprecationWarning due to matrix conversion in SciPy
> +pytestmark = pytest.mark.filterwarnings('ignore:matrix subclass')
>
> just to understand:
> Does this apply to the entire module?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#5135 (review)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AFU5RTFm6PRBOZYvOP5WugLu_i6VlT5sks5uYnN_gaJpZM4WeAxe>
> .
>
|
|
I'm merging this without waiting for appveyor, so we get Travis green again. looks good, @bashtage Thank you |
|
It is all from sparse.
…On Fri, Sep 7, 2018, 14:32 Josef Perktold ***@***.***> wrote:
Merged #5135 <#5135> into
master.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5135 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFU5RfQ7ntseAHmnMjKtYNnai6Zqnc0Lks5uYnVUgaJpZM4WeAxe>
.
|
MAINT: Fix warnings [skip ci]
| if trend == 'nc': | ||
| warnings.warn("Argument option trend='nc' is deprecated. Please" | ||
| warnings.warn("Argument option trend='n' is deprecated. Please" | ||
| " use option trend='n'.", DeprecationWarning) |
There was a problem hiding this comment.
Does this message make sense?
Fix many of the large number of Future/PendingDeprecation warnings that Pytest 3.8 now shows.