From eeba9e93bf86458600e7ab6e786695f6e6da0f07 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Tue, 6 Jun 2017 10:09:55 +0100 Subject: [PATCH 1/3] enable sudo false and cache pip --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4e9f813..856e668 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ # Config file for automatic testing at travis-ci.org - +sudo: false language: python python: @@ -16,3 +16,4 @@ install: pip install -r requirements.txt # command to run tests, e.g. python setup.py test script: python setup.py test +cache: pip From 7d89b8f9812e96fd08cb71eaed00eeeecca4339d Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Tue, 6 Jun 2017 10:20:26 +0100 Subject: [PATCH 2/3] add 3.6.0 and 3.6.1 separately --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 856e668..c30cd41 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,8 @@ python: - "3.3" - "3.4" - "3.5" - - "3.6" + - "3.6.0" + - "3.6.1" # command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors install: pip install -r requirements.txt From 4ba96e8948bfea73519db8e59b4c9c866eccd9a2 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Tue, 6 Jun 2017 10:41:00 +0100 Subject: [PATCH 3/3] skipIf 3.6.1 tests --- tests/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/common.py b/tests/common.py index f930308..fd0a329 100644 --- a/tests/common.py +++ b/tests/common.py @@ -293,6 +293,9 @@ def test_joined_str(self): self.check_roundtrip('f"{key}={value!s}"') self.check_roundtrip('f"{key}={value!r}"') self.check_roundtrip('f"{key}={value!a}"') + + @unittest.skipIf(sys.version_info != (3, 6, 0), "Only supported on 3.6.0") + def test_joined_str_361(self): self.check_roundtrip('f"{key:4}={value!s}"') self.check_roundtrip('f"{key:02}={value!r}"') self.check_roundtrip('f"{key:6}={value!a}"')