commit:     3cd49702014c6641190c858744ce4ea4a047366f
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 12 17:57:12 2020 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Oct 12 18:00:05 2020 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=3cd49702

SimpleEmergeTestCase: fix TypeError: write() argument must be str, not int

Bug: https://bugs.gentoo.org/748012
Fixes: 0552665627bf ("SimpleEmergeTestCase: run tests in coroutine method")
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 lib/portage/tests/emerge/test_simple.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/portage/tests/emerge/test_simple.py 
b/lib/portage/tests/emerge/test_simple.py
index 8635b70e4..25cb54de3 100644
--- a/lib/portage/tests/emerge/test_simple.py
+++ b/lib/portage/tests/emerge/test_simple.py
@@ -558,8 +558,7 @@ move dev-util/git dev-vcs/git
                                        output, _err = yield proc.communicate()
                                        yield proc.wait()
                                        if proc.returncode != os.EX_OK:
-                                               for line in output:
-                                                       
sys.stderr.write(_unicode_decode(line))
+                                               portage.writemsg(output)
 
                                self.assertEqual(os.EX_OK, proc.returncode,
                                        "emerge failed with args %s" % (args,))

Reply via email to