Skip to content

Commit 4012f4e

Browse files
committed
use skipUnless
1 parent 916d9d1 commit 4012f4e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/test/test_readline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class TestHistoryManipulation (unittest.TestCase):
1515
That's why the tests cover only a small subset of the interface.
1616
"""
1717

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.")
18+
@unittest.skipUnless(hasattr(readline, "clear_history"),
19+
"The history update test cannot be run because the "
20+
"clear_history method is not available.")
2121
def testHistoryUpdates(self):
2222
readline.clear_history()
2323

0 commit comments

Comments
 (0)