Skip to content

Commit

Permalink
Use less fragile test for git failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb-MCaw committed Oct 18, 2024
1 parent 4e9d697 commit 0ab1a01
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions testsuite/tests/index/git-local/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ def check_index_works():
"index", "--name", "my_index", "--add", "git+file:my_index",
complain_on_error=False
)
unix_pattern = "repository '.*my_index' does not exist"
windows_pattern = "'.*my_index' does not appear to be a git repository"
assert_match(f".*({unix_pattern}|{windows_pattern})", p.out)
assert_match(r'.*Command \["git", "clone", ".*"\] exited with code 128', p.out)


# Initialize a normal git repo in the my_index directory.
Expand Down

0 comments on commit 0ab1a01

Please sign in to comment.