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

use skipUnless

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