diff options
| author | hippo91 <guillaume.peillex@gmail.com> | 2017-11-03 09:39:13 +0100 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2017-11-11 12:39:24 +0100 |
| commit | 32abd38b0112b32a75cf0ea04bbf3b11df9512a7 (patch) | |
| tree | 93e6ed653036e418fd2aa4cbcb03a3ca75594b89 | |
| parent | 36e382b1874218d466db88cb8ecd2d10ab03d1c6 (diff) | |
| download | astroid-git-32abd38b0112b32a75cf0ea04bbf3b11df9512a7.tar.gz | |
Add of copyright and simplification of the mock to try to pass python3.3 CI
| -rw-r--r-- | astroid/tests/unittest_brain_numpy.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/astroid/tests/unittest_brain_numpy.py b/astroid/tests/unittest_brain_numpy.py index a36287d2..64aa9e5e 100644 --- a/astroid/tests/unittest_brain_numpy.py +++ b/astroid/tests/unittest_brain_numpy.py @@ -5,6 +5,7 @@ # Copyright (c) 2015 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2015 raylu <lurayl@gmail.com> # Copyright (c) 2015-2016 Cara Vinson <ceridwenv@gmail.com> +# Copyright (c) 2017 Guillaume Peillex <guillaume.peillex@gmail.com> # Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html # For details: https://github.com/PyCQA/astroid/blob/master/COPYING.LESSER @@ -31,11 +32,11 @@ class SubTestWrapper(unittest.TestCase): return super(SubTestWrapper, self).subTest(msg, **params) except AttributeError: # For python versions below 3.5 - return subTestMock(msg, **params) + return subTestMock(msg) @contextlib.contextmanager -def subTestMock(msg=None, **params): +def subTestMock(msg=None): """ A mock for subTest which do nothing """ |
