From 0de99cadbbfbe61bd082aa69d259215711afdb57 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Thu, 13 Aug 2015 14:13:08 +0200 Subject: [PATCH] - added comment for a change introduced in commit 4d3fcd9dc1f2c53272abd9c9fc8464df81f0da3e --- tests/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/common.py b/tests/common.py index f194b4a2..04657928 100644 --- a/tests/common.py +++ b/tests/common.py @@ -92,6 +92,7 @@ class MyHTTPHandler(HTTPHandler): elif exp is None: raise RuntimeError('exp or expfile required') if exp is not None: + # use req.data instead of req.get_data() for python3 compatiblity if req.data != bytes(exp, "utf-8"): raise RequestDataMismatch(req.get_full_url(), repr(req.get_data()), repr(exp)) return self.__get_response(req.get_full_url(), **kwargs)