diff --git a/tests/test_lib/test_tasks.py b/tests/test_lib/test_tasks.py index e196453a..00746604 100644 --- a/tests/test_lib/test_tasks.py +++ b/tests/test_lib/test_tasks.py @@ -452,7 +452,7 @@ class TasksTestCase(unittest.TestCase): obj = TestTask(123, 'some_method', ['random_arg'], None, options, temp_path) self.assertEquals(obj.localPath('test.txt'), dummy_file) - @patch('six.moves.urllib.request.urlopen', return_value=six.StringIO(six.text_type('Important things\nSome more important things\n'))) + @patch('six.moves.urllib.request.urlopen', return_value=six.BytesIO(six.b('Important things\nSome more important things\n'))) def test_BaseTaskHandler_localPath_no_file(self, mock_urlopen): """ """