From fe706eb6f17cf1b9224c9fb9dd0400d21f07d5f5 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 22 Aug 2016 16:21:08 +0100 Subject: [PATCH] Tweak to tests for py3 --- tests/test_api_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_api_client.py b/tests/test_api_client.py index b00ce3af9..a1b35cbde 100644 --- a/tests/test_api_client.py +++ b/tests/test_api_client.py @@ -196,7 +196,7 @@ class APIClientTests(APITestCase): schema = client.get('http://api.example.com/') temp = tempfile.NamedTemporaryFile() - temp.write('example file contents') + temp.write(b'example file contents') temp.flush() with open(temp.name, 'rb') as upload: @@ -230,7 +230,7 @@ class APIClientTests(APITestCase): schema = client.get('http://api.example.com/') temp = tempfile.NamedTemporaryFile() - temp.write('example file contents') + temp.write(b'example file contents') temp.flush() with open(temp.name, 'rb') as upload: