Skip to content

Commit

Permalink
Fix Python detection for Python 3.x
Browse files Browse the repository at this point in the history
  File "<string>", line 1
    import sys; print sys.version_info[:2]
                        ^
SyntaxError: invalid syntax
  • Loading branch information
bayandin committed Jun 20, 2014
1 parent 0e3e763 commit e8ba6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ python:
install:
- python setup.py -q install
script:
- if [[ "$(python -c 'import sys; print sys.version_info[:2]')" == "(2, 6)" ]]; then pip install unittest2; fi
- if [[ "$(python -c 'import sys; print(sys.version_info[:2])')" == "(2, 6)" ]]; then pip install unittest2; fi
- py.test --tb=native jsonschema
- python -m doctest README.rst

0 comments on commit e8ba6a6

Please sign in to comment.