We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 916d9d1 commit 4012f4eCopy full SHA for 4012f4e
1 file changed
Lib/test/test_readline.py
@@ -15,9 +15,9 @@ class TestHistoryManipulation (unittest.TestCase):
15
That's why the tests cover only a small subset of the interface.
16
"""
17
18
- @unittest.skipIf(not hasattr(readline, 'clear_history'),
19
- "The history update test cannot be run because the "
20
- "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.")
21
def testHistoryUpdates(self):
22
readline.clear_history()
23
0 commit comments