diff --git a/tests/unit/customizations/sso/test_utils.py b/tests/unit/customizations/sso/test_utils.py index 7a24acee3baf..44ec2a7628ac 100644 --- a/tests/unit/customizations/sso/test_utils.py +++ b/tests/unit/customizations/sso/test_utils.py @@ -222,7 +222,7 @@ def setUp(self): self.server_thread = threading.Thread( target=self.fetcher.get_auth_code_and_state ) - self.server_thread.setDaemon(True) + self.server_thread.daemon = True self.server_thread.start() def test_expected_auth_code(self):