[Pytest-commit] commit/pytest: hpk42: fix issue307 - use yaml.safe_load instead of yaml.load, thanks Mark Eichin.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu May 16 10:00:21 CEST 2013
1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/commits/7db6af80a1de/
Changeset: 7db6af80a1de
User: hpk42
Date: 2013-05-16 09:59:48
Summary: fix issue307 - use yaml.safe_load instead of yaml.load, thanks Mark Eichin.
Affected #: 2 files
diff -r 7c468f83e347c21fbed87eeae457f645bfcc7a66 -r 7db6af80a1defcc27d9016a0258b5be31386d82e CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -20,6 +20,8 @@
- honor --tb style for setup/teardown errors as well. Thanks Maho.
+- fix issue307 - use yaml.safe_load in example, thanks Mark Eichin.
+
Changes between 2.3.4 and 2.3.5
-----------------------------------
diff -r 7c468f83e347c21fbed87eeae457f645bfcc7a66 -r 7db6af80a1defcc27d9016a0258b5be31386d82e doc/en/example/nonpython/conftest.py
--- a/doc/en/example/nonpython/conftest.py
+++ b/doc/en/example/nonpython/conftest.py
@@ -9,7 +9,7 @@
class YamlFile(pytest.File):
def collect(self):
import yaml # we need a yaml parser, e.g. PyYAML
- raw = yaml.load(self.fspath.open())
+ raw = yaml.safe_load(self.fspath.open())
for name, spec in raw.items():
yield YamlItem(name, self, spec)
Repository URL: https://bitbucket.org/hpk42/pytest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the pytest-commit
mailing list