Skip to content

yaml.safe_load gets PendingDeprecationWarning #1

Description

@tombaker

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions