summaryrefslogtreecommitdiffstats
path: root/tests/cachestorage/test_cachestorage.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-12-16 15:00:56 +0000
committerGerrit Code Review <review@openstack.org>2019-12-16 15:00:56 +0000
commit63d877945d1474296ab6ba45ad3e6dcd753081f1 (patch)
treecb0c2c61eba8fc9ef8df717c23d277431691e243 /tests/cachestorage/test_cachestorage.py
parent2ea9841a9696d7e8c7cc9281dfd8de4498926090 (diff)
parent0b4ed38ca6c50f61636fd98bedf759f2198ac5e4 (diff)
downloadpython-jenkins-job-builder-63d877945d1474296ab6ba45ad3e6dcd753081f1.tar.gz
python-jenkins-job-builder-63d877945d1474296ab6ba45ad3e6dcd753081f1.tar.xz
python-jenkins-job-builder-63d877945d1474296ab6ba45ad3e6dcd753081f1.zip
Merge "Fix the yaml load warning."3.2.0
Diffstat (limited to 'tests/cachestorage/test_cachestorage.py')
-rw-r--r--tests/cachestorage/test_cachestorage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cachestorage/test_cachestorage.py b/tests/cachestorage/test_cachestorage.py
index 34803895..13c7b87a 100644
--- a/tests/cachestorage/test_cachestorage.py
+++ b/tests/cachestorage/test_cachestorage.py
@@ -40,6 +40,6 @@ class TestCaseJobCache(base.BaseTestCase):
"""
test_file = os.path.abspath(__file__)
with mock.patch("os.path.join", return_value=test_file):
- with mock.patch("yaml.load"):
+ with mock.patch("yaml.safe_load"):
with mock.patch("jenkins_jobs.builder.JobCache._lock"):
jenkins_jobs.builder.JobCache("dummy").data = None