diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-11-26 20:35:12 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-11-26 20:35:12 (GMT) |
commit | d1e22ba7db9d8668c486eb77999bbbbdca8b09d3 (patch) | |
tree | 6a5b823ea0994796e3a3abd5489b4056cfd273b7 /Lib/test/test_readline.py | |
parent | 810aa6db3472e48e182b185cc4375615977c85f5 (diff) | |
download | cpython-d1e22ba7db9d8668c486eb77999bbbbdca8b09d3.zip cpython-d1e22ba7db9d8668c486eb77999bbbbdca8b09d3.tar.gz cpython-d1e22ba7db9d8668c486eb77999bbbbdca8b09d3.tar.bz2 |
only support append_history if readline has it
Diffstat (limited to 'Lib/test/test_readline.py')
-rw-r--r-- | Lib/test/test_readline.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py index e5be02e..804887a 100644 --- a/Lib/test/test_readline.py +++ b/Lib/test/test_readline.py @@ -43,6 +43,8 @@ class TestHistoryManipulation (unittest.TestCase): self.assertEqual(readline.get_current_history_length(), 1) + @unittest.skipUnless(hasattr(readline, "append_history"), + "append_history not available") def test_write_read_append(self): hfile = tempfile.NamedTemporaryFile(delete=False) hfile.close() |