diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-11-26 20:35:56 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-11-26 20:35:56 (GMT) |
commit | 5b5350787f802c71907e12768ee1ecce56b68c3f (patch) | |
tree | db342f65bda22b0a0f5f7db5deaed731c2e70f0f | |
parent | 6150804397cca2dbd5408e4cbb1fa2e3d224f51c (diff) | |
download | cpython-5b5350787f802c71907e12768ee1ecce56b68c3f.zip cpython-5b5350787f802c71907e12768ee1ecce56b68c3f.tar.gz cpython-5b5350787f802c71907e12768ee1ecce56b68c3f.tar.bz2 |
use skipUnless
-rw-r--r-- | Lib/test/test_readline.py | 6 |
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() |