From: Alfredo Deza Date: Fri, 27 Jul 2018 15:15:58 +0000 (-0400) Subject: ceph-volume tests catch utf-8 encoded stdin errors X-Git-Tag: v12.2.8~106^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=13702aeca400bf2c2e0c12438ce05fdbbd5cda74;p=ceph.git ceph-volume tests catch utf-8 encoded stdin errors Signed-off-by: Alfredo Deza (cherry picked from commit 31f565e90bb346c2be982f7daba31431b5368677) --- diff --git a/src/ceph-volume/ceph_volume/tests/test_process.py b/src/ceph-volume/ceph_volume/tests/test_process.py index 4c17332c3828..c9dfaeebf957 100644 --- a/src/ceph-volume/ceph_volume/tests/test_process.py +++ b/src/ceph-volume/ceph_volume/tests/test_process.py @@ -76,6 +76,9 @@ class TestFunctionalCall(object): def test_unicode_encoding(self): process.call(['echo', u'\xd0']) + def test_unicode_encoding_stdin(self): + process.call(['echo'], stdin=u'\xd0'.encode('utf-8')) + class TestFunctionalRun(object):