Skip to content

DeprecationWarning when running with pytest #185

@SimonDR-Boltzmann

Description

@SimonDR-Boltzmann

Describe the bug
When running a file that does anyconfig.load with pytest, a DeprecationWarning is thrown:

venv/lib/python3.11/site-packages/anyconfig/processors/utils.py:245: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
    for res in (eps.get(pgroup, []) if isinstance(eps, dict)

To Reproduce
Steps to reproduce the behavior:

  1. create test.yml with content "test: 123"
  2. create test.py with content
import anyconfig

def test_load():
    anyconfig.load("test.yml")
  1. Run the file with pytest test.py

Expected behavior
No warnings

Desktop (please complete the following information):

  • Version 0.14.0

Additional context
The deprecation warning seems to come from importlib_metadata, see: python/importlib_metadata#298

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions