Skip to content

Commit 7611cd9

Browse files
committed
Don't check form of version number
This changes the regex in test_it_executes_git_not_from_cwd so that (unlike test_it_executes_git_to_shell_and_returns_result) it only checks that the output starts with the words "git version", and not the form of whatever follows those words.
1 parent 94e0fb0 commit 7611cd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_it_executes_git_not_from_cwd(self):
103103
os.chmod(impostor_path, 0o755)
104104

105105
with _chdir(tmpdir):
106-
self.assertRegex(self.git.execute(["git", "version"]), r"^git version [\d\.]{2}.*$")
106+
self.assertRegex(self.git.execute(["git", "version"]), r"^git version\b")
107107

108108
def test_it_accepts_stdin(self):
109109
filename = fixture_path("cat_file_blob")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy