mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
[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:
parent
2296906ed3
commit
396cadefda
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user