You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix distribution name normalization (PEP-0503) (#2144)
Current logic in `test_installed_modules` does not properly handle
distributions with underscores. On my machine I get the following error
while running tests:
```
tests/integrations/modules/test_modules.py:60: in test_installed_modules
assert installed_modules == pkg_resources_modules
E AssertionError: assert {'aiven-clien...'22.2.0', ...} == {'aiven-clien...'22.2.0', ...}
E Omitting 93 identical items, use -vv to show
E Left contains 1 more item:
E {'tomli_w': '1.0.0'}
E Right contains 1 more item:
E {'tomli-w': '1.0.0'}
E Use -v to get more diff
```
This change fixes distribution name normalization by applying the code
from PEP-0503 (https://peps.python.org/pep-0503/#normalized-names).
0 commit comments