Commit 350771d
committed
test: use yaml.safe_load() instead of yaml.load()
It eliminates warnings about using unsafe yaml.load(), which was added
to a recent versions of pyyaml. We don't construct Python classes
directly according to yaml tags, so safe_load() fit our needs.
There is even more serious reason to replace yaml.load() usages. In
Gentoo Linux (on recent pyyaml) a call to yaml.load() w/o an explicit
loader causes RuntimeError; see [1].
[1]: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79ba924d94cb0cf8559565178414c2a1d687b90c1 parent a6b6d56 commit 350771d
File tree
2 files changed
+2
-2
lines changed- test/cluster-py
- unit/suites/lib
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
0 commit comments