Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yaml.safe_load gets PendingDeprecationWarning #1

Open
tombaker opened this issue Jun 2, 2021 · 0 comments
Open

yaml.safe_load gets PendingDeprecationWarning #1

tombaker opened this issue Jun 2, 2021 · 0 comments

Comments

@tombaker
Copy link
Collaborator

tombaker commented Jun 2, 2021

If ignore::PendingDeprecationWarning is commented out in pytest.ini one gets:

tests/test_config/test_config_get_config_dict.py::test_exit_if_configfile_has_bad_yaml
  /Users/tbaker/github/dcmi/dctap-python/dctap/config.py:73: PendingDeprecationWarning:
  safe_load will be removed, use

    yaml=YAML(typ='safe', pure=True)
    yaml.load(...)

  instead
    return yaml.safe_load(default_config_yaml)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant