use skipUnless

This commit is contained in:
Benjamin Peterson 2014-11-26 14:35:56 -06:00
parent 6150804397
commit 5b5350787f

View file

@ -16,9 +16,9 @@ class TestHistoryManipulation (unittest.TestCase):
why the tests cover only a small subset of the interface.
"""
@unittest.skipIf(not hasattr(readline, 'clear_history'),
"The history update test cannot be run because the "
"clear_history method is not available.")
@unittest.skipUnless(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()