diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-01-06 18:18:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-06 18:18:57 +0200 |
commit | 682177360bff78786d8d45bb9203839c4ad44357 (patch) | |
tree | 7bcb6186447565adff24837cc6529b74564b4520 /numpy/testing | |
parent | b66864cfcaf0875f80bf68ccbd0cbbaaabc94f85 (diff) | |
parent | b6379539924568dad725f2ecc820477685f8d938 (diff) | |
download | numpy-682177360bff78786d8d45bb9203839c4ad44357.tar.gz |
Merge pull request #15256 from eric-wieser/use-keyword-only-arguments
MAINT: Implement keyword-only arguments as syntax
Diffstat (limited to 'numpy/testing')
-rw-r--r-- | numpy/testing/_private/utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py index 9e5a2eb2a..914491b71 100644 --- a/numpy/testing/_private/utils.py +++ b/numpy/testing/_private/utils.py @@ -2216,8 +2216,7 @@ class suppress_warnings: del self._filters def _showwarning(self, message, category, filename, lineno, - *args, **kwargs): - use_warnmsg = kwargs.pop("use_warnmsg", None) + *args, use_warnmsg=None, **kwargs): for cat, _, pattern, mod, rec in ( self._suppressions + self._tmp_suppressions)[::-1]: if (issubclass(category, cat) and |