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 @@ -535,14 +535,14 @@ def test_installed_modules():
535
535
if dist .metadata ["Name" ] is not None
536
536
and version (dist .metadata ["Name" ]) is not None
537
537
}
538
- assert installed_distributions == importlib_distributions
538
+ assert installed_distributions . items () >= importlib_distributions . items ()
539
539
540
540
elif pkg_resources_available :
541
541
pkg_resources_distributions = {
542
542
_normalize_distribution_name (dist .key ): dist .version
543
543
for dist in pkg_resources .working_set
544
544
}
545
- assert installed_distributions == pkg_resources_distributions
545
+ assert installed_distributions . items () >= pkg_resources_distributions . items ()
546
546
else :
547
547
pytest .fail ("Neither importlib nor pkg_resources is available" )
548
548
You can’t perform that action at this time.
0 commit comments