changeset 56748:8eff759d080f

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. ........
author Mark Dickinson <dickinsm@gmail.com>
date Mon, 26 Oct 2009 12:01:06 +0000
parents d3cf8eb87274
children 7dc57b991d83
files Lib/test/test_readline.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/test/test_readline.py	Mon Oct 26 08:24:14 2009 +0000
+++ b/Lib/test/test_readline.py	Mon Oct 26 12:01:06 2009 +0000
@@ -6,9 +6,10 @@
 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):