summary refs log tree commit diff
path: root/tests/config/test_load.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-03-22 10:20:17 +0000
committerErik Johnston <erik@matrix.org>2019-03-22 10:20:17 +0000
commit3677548a82be347bcc69cfd4bfa4570581ee755f (patch)
tree0db80c2a0fb17c5fb9b3b5bd87f4691f5ac8adc7 /tests/config/test_load.py
parentMerge pull request #4908 from matrix-org/erikj/block_peek_on_blocked_rooms (diff)
downloadsynapse-3677548a82be347bcc69cfd4bfa4570581ee755f.tar.xz
Use yaml safe_load
Diffstat (limited to 'tests/config/test_load.py')
-rw-r--r--tests/config/test_load.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/config/test_load.py b/tests/config/test_load.py
index d5f1777093..6bfc1970ad 100644
--- a/tests/config/test_load.py
+++ b/tests/config/test_load.py
@@ -43,7 +43,7 @@ class ConfigLoadingTestCase(unittest.TestCase):
         self.generate_config()
 
         with open(self.file, "r") as f:
-            raw = yaml.load(f)
+            raw = yaml.safe_load(f)
         self.assertIn("macaroon_secret_key", raw)
 
         config = HomeServerConfig.load_config("", ["-c", self.file])