Skip to content

Commit

Permalink
[Tests] Fix str/bytes issue on Python 3
Browse files Browse the repository at this point in the history
- argparser does not accept bytes and raised an error with encoded vars.
  • Loading branch information
cas-- committed Nov 2, 2018
1 parent 97e7d95 commit 967606f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deluge/tests/test_ui_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 967606f

Please sign in to comment.