tarantool / tarantool-python

Python client library for Tarantool
https://www.tarantool.io
BSD 2-Clause "Simplified" License
100 stars 48 forks source link

test: use yaml.safe_load() instead of yaml.load() #137

Closed Totktonada closed 5 years ago

Totktonada commented 5 years ago

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.