[Python-checkins] r75711 - python/trunk/Lib/test/test_readline.py
mark.dickinson
python-checkins at python.org
Mon Oct 26 12:59:30 CET 2009
Author: mark.dickinson
Date: Mon Oct 26 12:59:30 2009
New Revision: 75711
Log:
Skip readline tests if readline module is not available.
Modified:
python/trunk/Lib/test/test_readline.py
Modified: python/trunk/Lib/test/test_readline.py
==============================================================================
--- python/trunk/Lib/test/test_readline.py (original)
+++ python/trunk/Lib/test/test_readline.py Mon Oct 26 12:59:30 2009
@@ -6,9 +6,10 @@
why the tests cover only a small subset of the interface.
"""
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):
def testHistoryUpdates(self):
More information about the Python-checkins
mailing list