diff --git a/.travis.yml b/.travis.yml index 4e9f813..c30cd41 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: @@ -9,10 +9,12 @@ 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 # command to run tests, e.g. python setup.py test script: python setup.py test +cache: pip 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}"')