File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -536,14 +536,14 @@ def test_installed_modules():
536
536
if dist .metadata ["Name" ] is not None
537
537
and version (dist .metadata ["Name" ]) is not None
538
538
}
539
- assert installed_distributions == importlib_distributions
539
+ assert installed_distributions . items () >= importlib_distributions . items ()
540
540
541
541
elif pkg_resources_available :
542
542
pkg_resources_distributions = {
543
543
_normalize_distribution_name (dist .key ): dist .version
544
544
for dist in pkg_resources .working_set
545
545
}
546
- assert installed_distributions == pkg_resources_distributions
546
+ assert installed_distributions . items () >= pkg_resources_distributions . items ()
547
547
else :
548
548
pytest .fail ("Neither importlib nor pkg_resources is available" )
549
549
You can’t perform that action at this time.
0 commit comments