From 5b5350787f802c71907e12768ee1ecce56b68c3f Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 26 Nov 2014 14:35:56 -0600 Subject: use skipUnless --- Lib/test/test_readline.py | 6 +++--- 1 file 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() -- cgit v0.12