diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-02-14 16:09:19 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-02-14 16:09:19 +0300 |
commit | 7ce9f61cb66ddd78e2a6778970cd7c4845c79f00 (patch) | |
tree | 1f8f2e0a1331f6abd9bc94c8befa7c5402ecc741 /test/unit.py | |
parent | 0f008918b347277f7fa6989c4f7c6e9d6501692c (diff) | |
download | unit-7ce9f61cb66ddd78e2a6778970cd7c4845c79f00.tar.gz unit-7ce9f61cb66ddd78e2a6778970cd7c4845c79f00.tar.bz2 |
Tests: minor fixes.
Diffstat (limited to 'test/unit.py')
-rw-r--r-- | test/unit.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit.py b/test/unit.py index 55b3ce18..c0c65d4a 100644 --- a/test/unit.py +++ b/test/unit.py @@ -235,7 +235,7 @@ class TestUnit(unittest.TestCase): if sanitizer_errors: self._print_path_to_log() - self.assertFalse(sanitizer_error, 'sanitizer error(s)') + self.assertFalse(sanitizer_errors, 'sanitizer error(s)') if found: print('skipped.') @@ -350,8 +350,8 @@ class TestUnitHTTP(TestUnit): resp = '' if 'no_recv' not in kwargs: - enc = 'utf-8' if 'encoding' not in kwargs else kwargs['encoding'] - resp = self.recvall(sock).decode(enc) + enc = 'utf-8' if 'encoding' not in kwargs else kwargs['encoding'] + resp = self.recvall(sock).decode(enc) if TestUnit.detailed: print('<<<', resp.encode('utf-8'), sep='\n') |