mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
use skipUnless
This commit is contained in:
parent
6150804397
commit
5b5350787f
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue