aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-10-12 10:57:12 -0700
committerZac Medico <zmedico@gentoo.org>2020-10-12 11:00:05 -0700
commit3cd49702014c6641190c858744ce4ea4a047366f (patch)
tree6889c8c00da67bcea84f59fb43d363a828291a43
parentmovefile: remove dest_tmp_bytes on failure (diff)
downloadportage-3cd49702014c6641190c858744ce4ea4a047366f.tar.gz
portage-3cd49702014c6641190c858744ce4ea4a047366f.tar.bz2
portage-3cd49702014c6641190c858744ce4ea4a047366f.zip
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@gentoo.org>
-rw-r--r--lib/portage/tests/emerge/test_simple.py3
1 files changed, 1 insertions, 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,))