Skip to content

Commit 4d933d2

Browse files
pradyunsgpuetzk
andauthored
Use a stricter regex for matching the Python version
Co-authored-by: Kevin Puetz <[email protected]>
1 parent df98748 commit 4d933d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lib/test_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_correct_pip_version(script):
4545
# distribution
4646
pip_folder_outputed = re.match(
4747
r"pip \d+(\.[\d]+)+(\.?(b|rc|dev|pre|post)\d+)? from (.*) "
48-
r"\(python \d(.[\d]+)+\)$",
48+
r"\(python \d+(\.[\d]+)+\)$",
4949
result.stdout,
5050
).group(4)
5151
pip_folder = join(SRC_DIR, "src", "pip")

0 commit comments

Comments
 (0)