Skip to content

Commit e8ba6a6

Browse files
committed
Fix Python detection for Python 3.x
File "<string>", line 1 import sys; print sys.version_info[:2] ^ SyntaxError: invalid syntax
1 parent 0e3e763 commit e8ba6a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ python:
88
install:
99
- python setup.py -q install
1010
script:
11-
- if [[ "$(python -c 'import sys; print sys.version_info[:2]')" == "(2, 6)" ]]; then pip install unittest2; fi
11+
- if [[ "$(python -c 'import sys; print(sys.version_info[:2])')" == "(2, 6)" ]]; then pip install unittest2; fi
1212
- py.test --tb=native jsonschema
1313
- python -m doctest README.rst

0 commit comments

Comments
 (0)