fix unit test for localPath test

This commit is contained in:
Mike McLean 2019-02-07 23:38:35 -05:00
parent 5f15ff218b
commit 90700a65a5

View file

@ -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):
"""
"""