From 2203177d0dfec8ad1b816d4fac60703dccb1acda Mon Sep 17 00:00:00 2001 From: Francois Blackburn Date: Tue, 16 Apr 2019 18:10:59 -0400 Subject: [PATCH] use the recommended yaml.safe_load function reason: with pyyaml >= 5, the load function without Loader is deprecated. Even if we do not use version 5 for now, we should use good practices. https://pyyaml.org/wiki/PyYAMLDocumentation#loading-yaml https://github.com/yaml/pyyaml/pull/257 --- integration_tests/suite/test_password_reset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration_tests/suite/test_password_reset.py b/integration_tests/suite/test_password_reset.py index 30a30678..2151d44a 100644 --- a/integration_tests/suite/test_password_reset.py +++ b/integration_tests/suite/test_password_reset.py @@ -36,7 +36,7 @@ def test_password_reset(self, bar, foo): def _update_password_from_email(self, raw_email, password): headers, body = raw_email.split('\n\n', 1) - email_fields = yaml.load(body) + email_fields = yaml.safe_load(body) token = email_fields['token'] user_uuid = email_fields['user_uuid']