diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-26 19:44:35 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-26 20:54:15 +0200 |
commit | 29eb301700c41f0af7d57d923ad069cbdf636381 (patch) | |
tree | 0ce3c2e2f95108db719982f40ee2a47511b3deb9 /git/test/lib/helper.py | |
parent | 45f8f20bdf1447fbfebd19a07412d337626ed6b0 (diff) | |
download | gitpython-29eb301700c41f0af7d57d923ad069cbdf636381.tar.gz |
win, #519: proc.terminate() instead of kill(SIGTERM)
+ test_diff: replace asserts with unittest-asserts.
Diffstat (limited to 'git/test/lib/helper.py')
-rw-r--r-- | git/test/lib/helper.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py index b59f518b..75d4e6fb 100644 --- a/git/test/lib/helper.py +++ b/git/test/lib/helper.py @@ -219,7 +219,7 @@ def with_rw_and_rw_remote_repo(working_tree_ref): # Of course we expect it to work here already, but maybe there are timing constraints # on some platforms ? if gd is not None: - os.kill(gd.proc.pid, 15) + gd.proc.terminate() log.warning('git-ls-remote failed due to: %s(%s)', type(e), e) if os.name == 'nt': msg = "git-daemon needs to run this test, but windows does not have one. " @@ -246,9 +246,8 @@ def with_rw_and_rw_remote_repo(working_tree_ref): repo_dir = remote_repo_dir = None raise finally: - # gd.proc.kill() ... no idea why that doesn't work if gd is not None: - os.kill(gd.proc.pid, 15) + gd.proc.terminate() os.chdir(prev_cwd) rw_repo.git.clear_cache() |