diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-04 15:46:18 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-04 18:35:49 +0200 |
commit | 7ec9c4fb813918b37546c009bd9127f977ed8917 (patch) | |
tree | 6dae266c8580410853eaebd94137c3323e717e40 /git/test/test_repo.py | |
parent | 833ac6ec4c9f185fd40af7852b6878326f44a0b3 (diff) | |
download | gitpython-orig_master.tar.gz |
remote: unfix fetch-infos paring of 8a2f7dce4(pydev fixes)orig_master
+ Mark another TC failing when not in master.
Diffstat (limited to 'git/test/test_repo.py')
-rw-r--r-- | git/test/test_repo.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git/test/test_repo.py b/git/test/test_repo.py index 1d537e93..a889b2ff 100644 --- a/git/test/test_repo.py +++ b/git/test/test_repo.py @@ -909,6 +909,9 @@ class TestRepo(TestBase): rw_master = self.rorepo.clone(join_path_native(rw_dir, 'master_repo')) rw_master.git.checkout('HEAD~10') worktree_path = join_path_native(rw_dir, 'worktree_repo') - rw_master.git.worktree('add', worktree_path, 'master') + try: + rw_master.git.worktree('add', worktree_path, 'master') + except Exception as ex: + raise AssertionError(ex, "It's ok if TC not running from `master`.") self.failUnlessRaises(InvalidGitRepositoryError, Repo, worktree_path) |