diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-28 05:46:50 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-28 17:13:34 +0200 |
commit | 44c6d0b368bc1ec6cd0a97b01678b38788c9bd9c (patch) | |
tree | ad44c36bf3527711f4dec4417f465af8ef2b5308 /git/test/test_git.py | |
parent | f11fdf1d9d22a198511b02f3ca90146cfa5deb5c (diff) | |
download | gitpython-44c6d0b368bc1ec6cd0a97b01678b38788c9bd9c.tar.gz |
Proc, #519: Rework error-exc msgs & log thread-pumps errors
+ No WindowsError exception.
+ Add `test_exc.py` for unicode issues.
+ Single-arg for decoding-streams in pump-func.
Diffstat (limited to 'git/test/test_git.py')
-rw-r--r-- | git/test/test_git.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py index a676d7f7..8a0242e6 100644 --- a/git/test/test_git.py +++ b/git/test/test_git.py @@ -27,6 +27,7 @@ from git import ( from git.test.lib import with_rw_directory from git.compat import PY3, is_darwin +from git.util import finalize_process try: from unittest import mock @@ -233,7 +234,8 @@ class TestGit(TestBase): def counter_stderr(line): count[2] += 1 - proc = subprocess.Popen([sys.executable, fixture_path('cat_file.py'), str(fixture_path('issue-301_stderr'))], + cmdline = [sys.executable, fixture_path('cat_file.py'), str(fixture_path('issue-301_stderr'))] + proc = subprocess.Popen(cmdline, stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE, @@ -241,7 +243,7 @@ class TestGit(TestBase): creationflags=cmd.PROC_CREATIONFLAGS, ) - handle_process_output(proc, counter_stdout, counter_stderr, lambda proc: proc.wait()) + handle_process_output(proc, counter_stdout, counter_stderr, finalize_process) self.assertEqual(count[1], line_count) self.assertEqual(count[2], line_count) |