From 396cadefda1383aee0e8f17d4ce64d53b3f0f70f Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 8 May 2019 21:41:28 +0100 Subject: [PATCH] [Tests] Fix console test fail on AppVeyor Curses is not available on Windows so skip AppVeyor test that errors with: E NameError: global name 'curses' is not defined --- deluge/tests/test_ui_console_fields.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deluge/tests/test_ui_console_fields.py b/deluge/tests/test_ui_console_fields.py index b36856e97..a844184a1 100644 --- a/deluge/tests/test_ui_console_fields.py +++ b/deluge/tests/test_ui_console_fields.py @@ -9,6 +9,7 @@ from __future__ import unicode_literals from twisted.trial import unittest +from deluge.common import windows_check from deluge.ui.console.widgets.fields import TextInput @@ -41,4 +42,5 @@ class UICommonTestCase(unittest.TestCase): complete=False, ) self.assertTrue(t) - self.assertTrue(t.handle_read(33)) + if not windows_check(): + self.assertTrue(t.handle_read(33))