Skip to content

Commit cb62b3b

Browse files
committed
Try to ignore some non-covered code
1 parent 7c0efef commit cb62b3b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pip_check_reqs/find_extra_reqs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ def find_extra_reqs(options, requirements_filename):
2222
installed_files = {}
2323
all_pkgs = (pkg.project_name for pkg in get_installed_distributions())
2424
for package in search_packages_info(all_pkgs):
25-
if isinstance(package, dict):
25+
if isinstance(package, dict): # pragma: no cover
2626
package_name = package['name']
2727
package_location = package['location']
2828
package_files = package.get('files', []) or []
29-
else:
29+
else: # pragma: no cover
3030
package_name = package.name
3131
package_location = package.location
3232
package_files = []

pip_check_reqs/find_missing_reqs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ def find_missing_reqs(options, requirements_filename):
2929
installed_files = {}
3030
all_pkgs = (pkg.project_name for pkg in get_installed_distributions())
3131
for package in search_packages_info(all_pkgs):
32-
if isinstance(package, dict):
32+
if isinstance(package, dict): # pragma: no cover
3333
package_name = package['name']
3434
package_location = package['location']
3535
package_files = package.get('files', []) or []
36-
else:
36+
else: # pragma: no cover
3737
package_name = package.name
3838
package_location = package.location
3939
package_files = []

0 commit comments

Comments
 (0)