Commit 4012f4eb authored by Benjamin Peterson's avatar Benjamin Peterson

use skipUnless

parent 916d9d14
......@@ -15,9 +15,9 @@ class TestHistoryManipulation (unittest.TestCase):
That's 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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment