From 57d1f3b9f92f7b4362665a2f47d0db8b7f56947d Mon Sep 17 00:00:00 2001 From: rocky Date: Thu, 8 Sep 2016 05:09:36 -0400 Subject: [PATCH] More testing - travis: * 2.7.12 - bump from 2.7.11 * 3.3.6 test_pyenvlib: add --weak-verify to Makefile: check-3.2.6 needs --weak-verify --- .travis.yml | 3 ++- test/Makefile | 2 +- test/bytecode_3.3/06_frozenset.pyc | Bin 320 -> 301 bytes test/simple_source/expression/06_frozenset.py | 2 +- test/test_pythonlib.py | 4 +++- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9b0b7c97..e8e83467 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,9 @@ sudo: false python: - '3.5' - - '2.7.11' + - '2.7.12' - '2.6' + - '3.3' - '3.4' install: diff --git a/test/Makefile b/test/Makefile index ea87c7e3..682f92b5 100644 --- a/test/Makefile +++ b/test/Makefile @@ -28,7 +28,7 @@ check-3.2: check-bytecode #: Run working tests from Python 3.2 check-3.2: check-bytecode - $(PYTHON) test_pythonlib.py --bytecode-3.2 --verify $(COMPILE) + $(PYTHON) test_pythonlib.py --bytecode-3.2 --weak-verify $(COMPILE) #: Run working tests from Python 3.3 check-3.3: check-bytecode diff --git a/test/bytecode_3.3/06_frozenset.pyc b/test/bytecode_3.3/06_frozenset.pyc index 8df4b6184967a9960d6ea03771272fde4d9c5589..a0923edb5539e2ad407f672b4ebd6e2c05b4ebbb 100644 GIT binary patch delta 178 zcmX@Ww3exU9uF@Um&V2L{R|8Y$v_MTY(SO+5EnZEi4-7WWXNG)h+<$!Wnjo+1c^wd zGBKn85i>&y3quMkLk0^&Gb2Mb8$*#DLn=^^4a8;418WV|Ubbu*h9uF^9^A(%$Ees3{$v_MTtU#6n5EmN&i4-7WWXNG)h+<$!Wnjo+1c^wd zurp+{F%;=Aq%tw2urV|!dnR(fz98g9{WkG5wJCKuD nQj(KdTmojN=A`DP=9OqLgS3E%;>u#M*2JRpvWaKon1mStc$OkF diff --git a/test/simple_source/expression/06_frozenset.py b/test/simple_source/expression/06_frozenset.py index 0eef7d55..5b30dbf5 100644 --- a/test/simple_source/expression/06_frozenset.py +++ b/test/simple_source/expression/06_frozenset.py @@ -1,5 +1,5 @@ # Bug from Python 3.3 _markupbase.py cross compilatin # error in unmarshaling a frozenset import sys -if sys.argv[0] in {"attlist", "linktype", "link", "element"}: +if sys.argv[0] in frozenset({"attlist", "linktype", "link", "element"}): print("Yep") diff --git a/test/test_pythonlib.py b/test/test_pythonlib.py index 321cf2bf..3cda1f36 100755 --- a/test/test_pythonlib.py +++ b/test/test_pythonlib.py @@ -187,7 +187,7 @@ if __name__ == '__main__': test_options_keys = list(test_options.keys()) test_options_keys.sort() opts, args = getopt.getopt(sys.argv[1:], '', - ['start-with=', 'verify', 'all', 'compile', + ['start-with=', 'verify', 'weak-verify', 'all', 'compile', 'no-rm'] \ + test_options_keys ) if not opts: help() @@ -202,6 +202,8 @@ if __name__ == '__main__': for opt, val in opts: if opt == '--verify': test_opts['do_verify'] = True + elif opt == '--weak-verify': + test_opts['do_verify'] = 'weak' elif opt == '--compile': test_opts['do_compile'] = True elif opt == '--start-with':