diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2020-01-06 01:50:02 +0000 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2020-01-06 12:51:55 +0000 |
commit | b6379539924568dad725f2ecc820477685f8d938 (patch) | |
tree | c0516e000911eebe166884a90b12140eac46d187 /numpy/testing | |
parent | ba81c4200f289b393755d954f7450804ec8f897a (diff) | |
download | numpy-b6379539924568dad725f2ecc820477685f8d938.tar.gz |
MAINT: Implement keyword-only arguments as syntax
Now that 2.7 is gone, there is no need to pop manually from kwarg dictionaries.
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 |