Skip to content

Commit f153a2e

Browse files
committed
FIX: Split and strip
1 parent aee6d7e commit f153a2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_imports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def check_version_eq(package, ver):
8080
py_mod = _import(mod_map.get(mod, mod))
8181
if mod not in bad_ver and "." not in mod:
8282
ver_lines = [
83-
line
83+
line.split("#")[0].strip()
8484
for line in all_lines
8585
if line.startswith(f"- {ver_map.get(mod, mod).lower()} =")
8686
]

0 commit comments

Comments
 (0)