From 036c4fc9b360cfe3470ad337c8cd0ea7c7468990 Mon Sep 17 00:00:00 2001 From: Andy Clayton Date: Thu, 16 Aug 2018 15:46:50 -0500 Subject: [PATCH] document non-obvious string check --- oidc_provider/tests/app/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/oidc_provider/tests/app/utils.py b/oidc_provider/tests/app/utils.py index 5a31afd..6a65b64 100644 --- a/oidc_provider/tests/app/utils.py +++ b/oidc_provider/tests/app/utils.py @@ -64,6 +64,7 @@ def create_fake_client(response_type, is_public=False, require_consent=True): client.save() + # check if response_type is a string in a python 2 and 3 compatible way if isinstance(response_type, ("".__class__, u"".__class__)): response_type = (response_type,) for value in response_type: