diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-27 16:05:58 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-28 03:35:38 +0200 |
commit | e61439b3018b0b9a8eb43e59d0d7cf32041e2fed (patch) | |
tree | 864b8c57283d3167b192b69bd17e366252ebee15 /git/test/test_index.py | |
parent | df2fb548040c8313f4bb98870788604bc973fa18 (diff) | |
download | gitpython-e61439b3018b0b9a8eb43e59d0d7cf32041e2fed.tar.gz |
src: constify is_<platform>() calls
+ TCs: unittest-asserts for git-tests.
Diffstat (limited to 'git/test/test_index.py')
-rw-r--r-- | git/test/test_index.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git/test/test_index.py b/git/test/test_index.py index b83201c9..2a8df798 100644 --- a/git/test/test_index.py +++ b/git/test/test_index.py @@ -577,7 +577,7 @@ class TestIndex(TestBase): assert len(entries) == 1 and entries[0].hexsha != null_hex_sha # add symlink - if not is_win(): + if not is_win: for target in ('/etc/nonexisting', '/etc/passwd', '/etc'): basename = "my_real_symlink" @@ -630,7 +630,7 @@ class TestIndex(TestBase): index.checkout(fake_symlink_path) # on windows we will never get symlinks - if is_win(): + if is_win: # simlinks should contain the link as text ( which is what a # symlink actually is ) open(fake_symlink_path, 'rb').read() == link_target @@ -711,7 +711,7 @@ class TestIndex(TestBase): assert fkey not in index.entries index.add(files, write=True) - if is_win(): + if is_win: hp = hook_path('pre-commit', index.repo.git_dir) hpd = os.path.dirname(hp) if not os.path.isdir(hpd): |