diff --git a/tests/func/test_version.py b/tests/func/test_version.py index 753d53e6ee..4c2ad5caad 100644 --- a/tests/func/test_version.py +++ b/tests/func/test_version.py @@ -17,7 +17,7 @@ def test_info_in_repo(scm_init, tmp_dir, caplog): assert main(["version"]) == 0 assert re.search(r"DVC version: \d+\.\d+\.\d+.*", caplog.text) - assert re.search(r"Platform: Python \d\.\d\.\d on .*", caplog.text) + assert re.search(r"Platform: Python \d\.\d+\.\d+ on .*", caplog.text) assert re.search(r"Supports: .*", caplog.text) assert re.search(r"Cache types: .*", caplog.text) @@ -61,7 +61,7 @@ def test_info_outside_of_repo(tmp_dir, caplog): assert main(["version"]) == 0 assert re.search(r"DVC version: \d+\.\d+\.\d+.*", caplog.text) - assert re.search(r"Platform: Python \d\.\d\.\d on .*", caplog.text) + assert re.search(r"Platform: Python \d\.\d+\.\d+ on .*", caplog.text) assert re.search(r"Supports: .*", caplog.text) assert not re.search(r"Cache types: .*", caplog.text) assert "Repo:" not in caplog.text