From: Kevin P. Fleming Date: Tue, 17 Nov 2020 01:58:01 +0000 (-0500) Subject: Suppress Python 3 parsing of Unicode literals X-Git-Tag: auth-4.4.0-beta1~9^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bbaf474cf7a72a98088005b4e6e9dbf07f241cd8;p=thirdparty%2Fpdns.git Suppress Python 3 parsing of Unicode literals --- diff --git a/regression-tests.api/test_TSIG.py b/regression-tests.api/test_TSIG.py index dc08921bed..f755318f3e 100644 --- a/regression-tests.api/test_TSIG.py +++ b/regression-tests.api/test_TSIG.py @@ -138,7 +138,7 @@ class AuthTSIG(ApiTestCase, AuthTSIGHelperMixin): def test_put_broken_key(self): name, payload, data = self.create_tsig_key() payload = { - 'key': 'f\u0333oobar1======' + 'key': 'f\\u0333oobar1======' } r = self.session.put(self.url("/api/v1/servers/localhost/tsigkeys/" + data['id']), data=json.dumps(payload)) @@ -170,7 +170,7 @@ class AuthTSIG(ApiTestCase, AuthTSIGHelperMixin): def test_post_broken_key_name(self): payload = { 'name': unique_tsigkey_name(), - 'key': 'f\u0333oobar1======', + 'key': 'f\\u0333oobar1======', 'algorithm': 'hmac-md5' } r = self.session.post(self.url("/api/v1/servers/localhost/tsigkeys"),