From 9e1e1ba0159ed30028e4fd0783a5af57f9619494 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sat, 10 Aug 2019 00:44:49 +0100 Subject: [PATCH] issue #615: Py3x fix. --- tests/ansible/tests/connection_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)