1 |
commit: 3cd49702014c6641190c858744ce4ea4a047366f |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 12 17:57:12 2020 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 12 18:00:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=3cd49702 |
7 |
|
8 |
SimpleEmergeTestCase: fix TypeError: write() argument must be str, not int |
9 |
|
10 |
Bug: https://bugs.gentoo.org/748012 |
11 |
Fixes: 0552665627bf ("SimpleEmergeTestCase: run tests in coroutine method") |
12 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
13 |
|
14 |
lib/portage/tests/emerge/test_simple.py | 3 +-- |
15 |
1 file changed, 1 insertion(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/lib/portage/tests/emerge/test_simple.py b/lib/portage/tests/emerge/test_simple.py |
18 |
index 8635b70e4..25cb54de3 100644 |
19 |
--- a/lib/portage/tests/emerge/test_simple.py |
20 |
+++ b/lib/portage/tests/emerge/test_simple.py |
21 |
@@ -558,8 +558,7 @@ move dev-util/git dev-vcs/git |
22 |
output, _err = yield proc.communicate() |
23 |
yield proc.wait() |
24 |
if proc.returncode != os.EX_OK: |
25 |
- for line in output: |
26 |
- sys.stderr.write(_unicode_decode(line)) |
27 |
+ portage.writemsg(output) |
28 |
|
29 |
self.assertEqual(os.EX_OK, proc.returncode, |
30 |
"emerge failed with args %s" % (args,)) |