@@ -226,6 +226,13 @@ def display(substitution, matches, longest_match_length): |
|
|
226 |
226 |
self.assertIn(b"result " + expected + b"\r\n", output) |
227 |
227 |
self.assertIn(b"history " + expected + b"\r\n", output) |
228 |
228 |
|
|
229 |
+# We have 2 reasons to skip this test: |
|
230 |
+# - readline: history size was added in 6.0 |
|
231 |
+# See https://cnswww.cns.cwru.edu/php/chet/readline/CHANGES |
|
232 |
+# - editline: history size is broken on OS X 10.11.6. |
|
233 |
+# Newer versions were not tested yet. |
|
234 |
+@unittest.skipIf(readline._READLINE_VERSION < 0x600, |
|
235 |
+ "this readline version does not support history-size") |
229 |
236 |
@unittest.skipIf(is_editline, |
230 |
237 |
"editline history size configuration is broken") |
231 |
238 |
def test_history_size(self): |