[pypy-commit] pypy py3.6: use getattr here as well (already done for another test)
cfbolz
pypy.commits at gmail.com
Mon Sep 16 08:48:01 EDT 2019
Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: py3.6
Changeset: r97492:ce752f8d7d1e
Date: 2019-09-16 13:55 +0200
http://bitbucket.org/pypy/pypy/changeset/ce752f8d7d1e/
Log: use getattr here as well (already done for another test)
diff --git a/lib-python/3/test/test_readline.py b/lib-python/3/test/test_readline.py
--- a/lib-python/3/test/test_readline.py
+++ b/lib-python/3/test/test_readline.py
@@ -227,7 +227,7 @@
# See https://cnswww.cns.cwru.edu/php/chet/readline/CHANGES
# - editline: history size is broken on OS X 10.11.6.
# Newer versions were not tested yet.
- @unittest.skipIf(readline._READLINE_VERSION < 0x600,
+ @unittest.skipIf(getattr(readline, "_READLINE_VERSION", 0x601) < 0x600,
"this readline version does not support history-size")
@unittest.skipIf(is_editline,
"editline history size configuration is broken")
More information about the pypy-commit
mailing list