From 11bc10520762866f7ebda3febf8a00be1b007931 Mon Sep 17 00:00:00 2001 From: Akinori Hattori Date: Sat, 19 Jul 2014 10:37:46 +0900 Subject: [PATCH] skip readline test on Windows --- test/test_utils.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/test_utils.py b/test/test_utils.py index 737c00a2..84b966ed 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -1,10 +1,15 @@ -import readline +try: + import readline +except ImportError: + readline = False from jedi import utils -from .helpers import TestCase, cwd_at + +from .helpers import unittest, cwd_at -class TestSetupReadline(TestCase): +@unittest.skipIf(not readline, "readline not found") +class TestSetupReadline(unittest.TestCase): class NameSpace(object): pass