mirror of https://github.com/python/cpython
Skip readline tests if readline module is not available.
This commit is contained in:
parent
8d87dc0c29
commit
828b39865a
|
@ -6,9 +6,10 @@ the "real" readline have the same interface for history manipulation. That's
|
||||||
why the tests cover only a small subset of the interface.
|
why the tests cover only a small subset of the interface.
|
||||||
"""
|
"""
|
||||||
import unittest
|
import unittest
|
||||||
from test.test_support import run_unittest
|
from test.test_support import run_unittest, import_module
|
||||||
|
|
||||||
import readline
|
# Skip tests if there is no readline module
|
||||||
|
readline = import_module('readline')
|
||||||
|
|
||||||
class TestHistoryManipulation (unittest.TestCase):
|
class TestHistoryManipulation (unittest.TestCase):
|
||||||
def testHistoryUpdates(self):
|
def testHistoryUpdates(self):
|
||||||
|
|
Loading…
Reference in New Issue