Skip to content

Commit 9892c86

Browse files
committed
test: fix the test assertion
1 parent 4f6f24f commit 9892c86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/bzlmod/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_coverage_sys_path(self):
7171
first_coverage_index = None
7272
last_user_dep_index = None
7373
for i, path in enumerate(sys.path):
74-
if re.search("rules_python.*[~+]pip[~+]", path):
74+
if re.search("rules_python.*[~+]pypi[~+]", path):
7575
last_user_dep_index = i
7676
if first_coverage_index is None and re.search(
7777
".*rules_python.*[~+]python[~+].*coverage.*", path
@@ -87,7 +87,7 @@ def test_coverage_sys_path(self):
8787
self.assertIsNotNone(
8888
last_user_dep_index,
8989
"Expected to find at least one user dep, "
90-
+ "but none were found.\nsys.path:\n{all_paths}",
90+
+ f"but none were found.\nsys.path:\n{all_paths}",
9191
)
9292
# we are running under the 'bazel coverage :test'
9393
self.assertGreater(

0 commit comments

Comments
 (0)