Commit 95d83317 authored by Raphaël Hertzog's avatar Raphaël Hertzog

vendor/debian: json.loads() on Python 3.5 really wants strings not bytes

parent d3f6a6c5
Pipeline #49770 passed with stages
in 10 minutes and 51 seconds
......@@ -2682,7 +2682,7 @@ class DebianWatchFileScannerUpdateTests(TestCase):
self.task = DebianWatchFileScannerUpdate()
# Stub the data providing methods: no content by default
self.task._get_upstream_status_content = mock.MagicMock(
return_value=b'')
return_value='')
def run_task(self):
self.task.execute()
......@@ -2696,7 +2696,7 @@ class DebianWatchFileScannerUpdateTests(TestCase):
representation of this list.
"""
self.task._get_upstream_status_content.return_value = json.dumps(
content).encode('utf-8')
content)
def get_item_type(self, type_name):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment