diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-01 12:12:19 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-01 12:26:07 +0200 |
commit | 13d399f4460ecb17cecc59d7158a4159010b2ac5 (patch) | |
tree | 7d21abf15454194b1c86599f17b960c6d4ba1670 /git/test/test_config.py | |
parent | d84b960982b5bad0b3c78c4a680638824924004b (diff) | |
download | gitpython-13d399f4460ecb17cecc59d7158a4159010b2ac5.tar.gz |
ci: restore ci log-level to normal, coverage on Win-Appveyor
+ Extract util-method to delete lock-files, also on Windows (will be
needed by TCs).
Diffstat (limited to 'git/test/test_config.py')
-rw-r--r-- | git/test/test_config.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/git/test/test_config.py b/git/test/test_config.py index b807413b..bd2bad0a 100644 --- a/git/test/test_config.py +++ b/git/test/test_config.py @@ -12,8 +12,7 @@ from git import ( GitConfigParser ) from git.compat import ( - string_types, - is_win,) + string_types) from git.config import cp from git.test.lib import ( TestCase, @@ -22,6 +21,7 @@ from git.test.lib import ( from git.test.lib import with_rw_directory import os.path as osp +from git.util import rmfile _tc_lock_fpaths = osp.join(osp.dirname(__file__), 'fixtures/*.lock') @@ -29,9 +29,7 @@ _tc_lock_fpaths = osp.join(osp.dirname(__file__), 'fixtures/*.lock') def _rm_lock_files(): for lfp in glob.glob(_tc_lock_fpaths): - if is_win and osp.isfile(lfp): - os.chmod(lfp, 0o777) - os.remove(lfp) + rmfile(lfp) class TestBase(TestCase): |