]> granicus.if.org Git - python/commitdiff
use skipUnless
authorBenjamin Peterson <benjamin@python.org>
Wed, 26 Nov 2014 20:35:56 +0000 (14:35 -0600)
committerBenjamin Peterson <benjamin@python.org>
Wed, 26 Nov 2014 20:35:56 +0000 (14:35 -0600)
Lib/test/test_readline.py

index d2a11f2d0222b14e1531c7ad16447bc64778c85a..0b2b0a5c2f4c2aa274258e92b9eb9e4ec7bcc0d7 100644 (file)
@@ -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()