Skip to content

Commit

Permalink
[Travis CI] Tries to fix Python 2.6 & 3.2 tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Sep 29, 2014
1 parent 60430af commit 3be42be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4

Expand All @@ -11,10 +12,11 @@ services:

env:
- DJANGO=1.6.7 PSYCOPG2=2.5.4 MYSQL-PYTHON=1.2.5 DJANGO_REDIS=3.7.1
- DJANGO=1.7 PSYCOPG2=2.5.4 MYSQL-PYTHON=1.2.5 DJANGO_REDIS=3.7.1

install:
- pip install Django==$DJANGO psycopg2==$PSYCOPG2 django-redis==$DJANGO_REDIS
coveralls
unittest2 coveralls
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]];
then
pip install
Expand Down
5 changes: 4 additions & 1 deletion cachalot/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# coding: utf-8

from __future__ import unicode_literals
from unittest import skip
try:
from unittest import skip
except ImportError: # For Python 2.6 & 3.2
from unittest2 import skip
import datetime
from django.conf import settings
from django.contrib.auth.models import User, Permission, Group
Expand Down

0 comments on commit 3be42be

Please sign in to comment.