summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_readline.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-11-26 20:35:56 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-11-26 20:35:56 (GMT)
commit5b5350787f802c71907e12768ee1ecce56b68c3f (patch)
treedb342f65bda22b0a0f5f7db5deaed731c2e70f0f /Lib/test/test_readline.py
parent6150804397cca2dbd5408e4cbb1fa2e3d224f51c (diff)
downloadcpython-5b5350787f802c71907e12768ee1ecce56b68c3f.zip
cpython-5b5350787f802c71907e12768ee1ecce56b68c3f.tar.gz
cpython-5b5350787f802c71907e12768ee1ecce56b68c3f.tar.bz2
use skipUnless
Diffstat (limited to 'Lib/test/test_readline.py')
-rw-r--r--Lib/test/test_readline.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py
index d2a11f2..0b2b0a5 100644
--- a/Lib/test/test_readline.py
+++ b/Lib/test/test_readline.py
@@ -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()