Description of problem: When using nose-testconfig with PyYAML >= 5.1, loading any YAML file will display a warning. Version-Release number of selected component (if applicable): python3-nose-testconfig-0.10-12.fc30.noarch python3-pyyaml-5.1-1.fc31.x86_64 How reproducible: Always Steps to Reproduce: >>> import testconfig >>> testconfig.load_yaml('examples/example_cfg.yaml', 'utf-8') Actual results: /usr/lib/python3.7/site-packages/testconfig.py:37: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. parsed_config = yaml.load(codecs.open(yaml_file, 'r', encoding).read()) Expected results: just load the file Additional info: Loading config files with nose-testconfig is intentionally and explicitly unsafe. One of the config file loaders just execs a python file, after all. nose-testconfig can be modified to use Loader=Loader with no change in expected behavior.
(In reply to David Shea from comment #0) > Loading config files with nose-testconfig is intentionally and explicitly > unsafe. Scratch that. From the pypi description: "When using YAML-style configuration, you get a lot of the power of pure python without the danger of unprotected exec()". yaml.FullLoader (the default in PyYAML-5.1) is appropriate for nose-testconfig in order to allow the !!python extensions without arbitrary code execution.
python-nose-testconfig-0.10-13.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-c58c812825
python-nose-testconfig-0.10-13.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-ad61fd43f7
python-nose-testconfig-0.10-13.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-4fb43a355e
python-nose-testconfig-0.10-13.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-c58c812825
python-nose-testconfig-0.10-13.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-4fb43a355e
python-nose-testconfig-0.10-13.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-ad61fd43f7
python-nose-testconfig-0.10-13.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.
python-nose-testconfig-0.10-13.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
python-nose-testconfig-0.10-13.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.