[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
This commit is contained in:
Calum Lind 2019-05-08 21:41:28 +01:00
parent 2296906ed3
commit 396cadefda
1 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@ from __future__ import unicode_literals
from twisted.trial import unittest from twisted.trial import unittest
from deluge.common import windows_check
from deluge.ui.console.widgets.fields import TextInput from deluge.ui.console.widgets.fields import TextInput
@ -41,4 +42,5 @@ class UICommonTestCase(unittest.TestCase):
complete=False, complete=False,
) )
self.assertTrue(t) self.assertTrue(t)
self.assertTrue(t.handle_read(33)) if not windows_check():
self.assertTrue(t.handle_read(33))