summaryrefslogtreecommitdiffstats
path: root/deluge/tests/test_ui_console.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2021-07-24 14:11:58 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2021-08-01 08:48:27 +0100
commitb89b2c45b145c33c41115a9aac6e46b085ce668a (patch)
tree8c373cdb925284b6915061659efb2444bfa0b89c /deluge/tests/test_ui_console.py
parente38f1173cf470f2f8373f2fa4edbb726c932c980 (diff)
downloaddeluge-b89b2c45b145c33c41115a9aac6e46b085ce668a.tar.gz
deluge-b89b2c45b145c33c41115a9aac6e46b085ce668a.tar.bz2
deluge-b89b2c45b145c33c41115a9aac6e46b085ce668a.zip
[Console] Fix using windows-curses on Windows
The console tests are still failing on Windows due to an issue where the sys args are not being correctly replaced in the tests so the pytest args are being passed to console.
Diffstat (limited to 'deluge/tests/test_ui_console.py')
-rw-r--r--deluge/tests/test_ui_console.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/deluge/tests/test_ui_console.py b/deluge/tests/test_ui_console.py
index da97f5c15..3667c608e 100644
--- a/deluge/tests/test_ui_console.py
+++ b/deluge/tests/test_ui_console.py
@@ -9,7 +9,6 @@ from __future__ import unicode_literals
import argparse
-from deluge.common import windows_check
from deluge.ui.console.cmdline.commands.add import Command
from deluge.ui.console.cmdline.commands.config import json_eval
from deluge.ui.console.widgets.fields import TextInput
@@ -46,8 +45,7 @@ class UIConsoleFieldTestCase(BaseTestCase):
complete=False,
)
self.assertTrue(t)
- if not windows_check():
- self.assertTrue(t.handle_read(33))
+ self.assertTrue(t.handle_read(33))
class UIConsoleCommandsTestCase(BaseTestCase):