From b89b2c45b145c33c41115a9aac6e46b085ce668a Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 24 Jul 2021 14:11:58 +0100 Subject: [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. --- deluge/tests/test_ui_console.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'deluge/tests/test_ui_console.py') 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): -- cgit