From 967606fa0f5c3afef783d1fcf08744408f5f71c5 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 25 Oct 2018 21:00:02 +0100 Subject: [PATCH] [Tests] Fix str/bytes issue on Python 3 - argparser does not accept bytes and raised an error with encoded vars. --- deluge/tests/test_ui_entry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/tests/test_ui_entry.py b/deluge/tests/test_ui_entry.py index ef28cc4ad..46ec2a421 100644 --- a/deluge/tests/test_ui_entry.py +++ b/deluge/tests/test_ui_entry.py @@ -20,7 +20,7 @@ from twisted.internet import defer import deluge import deluge.component as component import deluge.ui.web.server -from deluge.common import PY2, get_localhost_auth, utf8_encode_structure, windows_check +from deluge.common import PY2, get_localhost_auth, windows_check from deluge.ui import ui_entry from deluge.ui.web.server import DelugeWeb @@ -166,7 +166,7 @@ class GtkUIBaseTestCase(UIBaseTestCase): """Implement all GtkUI tests here""" def test_start_gtk3ui(self): - self.patch(sys, 'argv', utf8_encode_structure(self.var['sys_arg_cmd'])) + self.patch(sys, 'argv', self.var['sys_arg_cmd']) from deluge.ui.gtk3 import gtkui