From 7ce9f61cb66ddd78e2a6778970cd7c4845c79f00 Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Thu, 14 Feb 2019 16:09:19 +0300 Subject: Tests: minor fixes. --- test/unit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/unit.py') 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') -- cgit