aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py2/IPython/external
diff options
context:
space:
mode:
authorNikita Slyusarev <nslus@yandex-team.com>2022-02-10 16:46:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:52 +0300
commitcd77cecfc03a3eaf87816af28a33067c4f0cdb59 (patch)
tree1308e0bae862d52e0020d881fe758080437fe389 /contrib/python/ipython/py2/IPython/external
parentcdae02d225fb5b3afbb28990e79a7ac6c9125327 (diff)
downloadydb-cd77cecfc03a3eaf87816af28a33067c4f0cdb59.tar.gz
Restoring authorship annotation for Nikita Slyusarev <nslus@yandex-team.com>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/ipython/py2/IPython/external')
-rw-r--r--contrib/python/ipython/py2/IPython/external/decorators/_numpy_testing_utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/python/ipython/py2/IPython/external/decorators/_numpy_testing_utils.py b/contrib/python/ipython/py2/IPython/external/decorators/_numpy_testing_utils.py
index ad7bd0f981..34de37d525 100644
--- a/contrib/python/ipython/py2/IPython/external/decorators/_numpy_testing_utils.py
+++ b/contrib/python/ipython/py2/IPython/external/decorators/_numpy_testing_utils.py
@@ -85,7 +85,7 @@ class WarningManager:
else:
return None
- def __exit__(self, type_, value, traceback):
+ def __exit__(self, type_, value, traceback):
if not self._entered:
raise RuntimeError("Cannot exit %r without entering first" % self)
self._module.filters = self._filters
@@ -101,8 +101,8 @@ def assert_warns(warning_class, func, *args, **kw):
# XXX: once we may depend on python >= 2.6, this can be replaced by the
# warnings module context manager.
- with WarningManager(record=True) as l:
- warnings.simplefilter('always')
+ with WarningManager(record=True) as l:
+ warnings.simplefilter('always')
func(*args, **kw)
if not len(l) > 0:
raise AssertionError("No warning raised when calling %s"