We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b66f3b commit 2a6b90bCopy full SHA for 2a6b90b
tests/test_utils.py
@@ -689,12 +689,10 @@ def test_installed_modules():
689
690
if importlib_available:
691
importlib_distributions = {
692
- _normalize_distribution_name(dist.metadata.get("Name", None)): version(
693
- dist.metadata.get("Name", None)
694
- )
+ _normalize_distribution_name(dist.metadata.get("Name", None)): dist.version
695
for dist in distributions()
696
if dist.metadata.get("Name", None) is not None
697
- and version(dist.metadata.get("Name", None)) is not None
+ and dist.version is not None
698
}
699
assert installed_distributions == importlib_distributions
700
0 commit comments