diff --git a/tests/ansible/tests/connection_test.py b/tests/ansible/tests/connection_test.py index 36d61f09..738aed28 100644 --- a/tests/ansible/tests/connection_test.py +++ b/tests/ansible/tests/connection_test.py @@ -103,7 +103,7 @@ class FetchFileTest(ConnectionMixin, testlib.TestCase): def test_success(self): with tempfile.NamedTemporaryFile(prefix='mitotest') as ifp, \ tempfile.NamedTemporaryFile(prefix='mitotest') as ofp: - ifp.write('x' * (1048576 * 4)) + ifp.write(b'x' * (1048576 * 4)) ifp.flush() ifp.seek(0)