diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-26 19:42:42 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-26 20:54:12 +0200 |
commit | 45f8f20bdf1447fbfebd19a07412d337626ed6b0 (patch) | |
tree | dfd959548fb72122df7358c062a32bcff3acf4a1 /git/test/test_git.py | |
parent | 783ad99b92faa68c5cc2550c489ceb143a93e54f (diff) | |
download | gitpython-45f8f20bdf1447fbfebd19a07412d337626ed6b0.tar.gz |
Win, #519: FIX WinHangs: Popen() CREATE_NEW_PROCESS_GROUP to allow kill
+ FIXED most hangs BUT no more `git-daemon` un-killable!
+ Use logger for utils to replace stray print().
Diffstat (limited to 'git/test/test_git.py')
-rw-r--r-- | git/test/test_git.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py index 935673b1..ea62de03 100644 --- a/git/test/test_git.py +++ b/git/test/test_git.py @@ -21,7 +21,8 @@ from git import ( Git, GitCommandError, GitCommandNotFound, - Repo + Repo, + cmd ) from gitdb.test.lib import with_rw_directory @@ -240,7 +241,7 @@ class TestGit(TestBase): stderr=subprocess.PIPE, shell=False, universal_newlines=True, - creationflags=Git.CREATE_NO_WINDOW if sys.platform == 'win32' else 0, + creationflags=cmd.PROC_CREATIONFLAGS, ) handle_process_output(proc, counter_stdout, counter_stderr, lambda proc: proc.wait()) |