diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-10-26 12:01:06 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-10-26 12:01:06 (GMT) |
commit | 2d7062e1b464b0c6e1c66893d86682bebec997e0 (patch) | |
tree | 9499f8fa668206a1845ae8f9b22c001a4bb6f457 /Lib/test | |
parent | 0548ce088de6a382d0a4ea8789f106696176937d (diff) | |
download | cpython-2d7062e1b464b0c6e1c66893d86682bebec997e0.zip cpython-2d7062e1b464b0c6e1c66893d86682bebec997e0.tar.gz cpython-2d7062e1b464b0c6e1c66893d86682bebec997e0.tar.bz2 |
Merged revisions 75711 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75711 | mark.dickinson | 2009-10-26 11:59:30 +0000 (Mon, 26 Oct 2009) | 1 line
Skip readline tests if readline module is not available.
........
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_readline.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py index b2495a3..5f5a90a 100644 --- a/Lib/test/test_readline.py +++ b/Lib/test/test_readline.py @@ -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. """ import unittest -from test.support import run_unittest +from 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): def testHistoryUpdates(self): |