#11496: skip history test if clear_history is not available.

Patch by Natalia B. Bidart.
This commit is contained in:
R David Murray 2011-03-14 17:10:22 -04:00
parent 525c25d42f
commit f8b9dfd9a1
2 changed files with 5 additions and 0 deletions

View file

@ -12,6 +12,10 @@
readline = import_module('readline')
class TestHistoryManipulation (unittest.TestCase):
@unittest.skipIf(not hasattr(readline, 'clear_history'),
"The history update test cannot be run because the "
"clear_history method is not available.")
def testHistoryUpdates(self):
readline.clear_history()

View file

@ -79,6 +79,7 @@ Eric Beser
Steven Bethard
Stephen Bevan
Ron Bickers
Natalia B. Bidart
Adrian von Bidder
David Binger
Dominic Binks