[Python-checkins] cpython (3.4): use skipUnless

benjamin.peterson python-checkins at python.org
Wed Nov 26 21:36:23 CET 2014


https://hg.python.org/cpython/rev/812f31cbe6be
changeset: 93604:812f31cbe6be
branch: 3.4
parent: 93591:e635c3ba75c8
user: Benjamin Peterson <benjamin at python.org>
date: Wed Nov 26 14:35:56 2014 -0600
summary:
 use skipUnless
files:
 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
--- a/Lib/test/test_readline.py
+++ b/Lib/test/test_readline.py
@@ -16,9 +16,9 @@
 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()
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /