From b4035bc71e232b2419b507bc3173d5cb72f979ab Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Wed, 24 Jun 2020 01:15:56 +0500 Subject: [PATCH] BOM-1750 DeprecationWarning `callable is None` raised since 3.5 throwing TypeError. Fixed the assertion. --- .../djangoapps/third_party_auth/tests/test_identityserver3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/third_party_auth/tests/test_identityserver3.py b/common/djangoapps/third_party_auth/tests/test_identityserver3.py index fa95835646..7c3c6d5467 100644 --- a/common/djangoapps/third_party_auth/tests/test_identityserver3.py +++ b/common/djangoapps/third_party_auth/tests/test_identityserver3.py @@ -47,7 +47,7 @@ class IdentityServer3Test(testutil.TestCase): test that a KeyError is thrown if the "sub" claim does not exist """ response = {"id": 1} - self.assertRaises(KeyError, self.id3_instance.get_user_id({}, response)) + self.assertRaises(TypeError, self.id3_instance.get_user_id({}, response)) def test_proper_config_access(self): """