diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-01-15 17:50:10 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-01-15 17:50:10 +0300 |
commit | d229549101dc7d0fa4ca13221563c79098ebf56a (patch) | |
tree | 86f390bee629390d64dd3f2be851097487f3e630 | |
parent | 43e36d91e5501fa5df33e1cbc6cddabae6fef5e8 (diff) | |
download | unit-d229549101dc7d0fa4ca13221563c79098ebf56a.tar.gz unit-d229549101dc7d0fa4ca13221563c79098ebf56a.tar.bz2 |
Tests: fixed arguments order in getattr() call.
-rw-r--r-- | test/unit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit.py b/test/unit.py index d3d00fe0..2061e3e1 100644 --- a/test/unit.py +++ b/test/unit.py @@ -29,7 +29,7 @@ class TestUnit(unittest.TestCase): shutil.rmtree(self.testdir)
def assertTry(self, assert_method, description, *args):
- try: getattr(self, assert_method)(*args, description)
+ try: getattr(self, assert_method)(*args, msg=description)
except AssertionError: print('not yet: ' + description)
def check_modules(self, *modules):
|