Skip to content

Commit

Permalink
Fix test errors on python 2.6. closes #354
Browse files Browse the repository at this point in the history
  • Loading branch information
craigds committed Jan 14, 2015
1 parent 02adc6b commit 8097449
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/myapp/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
import re
import sys
import tempfile
import unittest

if sys.version_info < (2, 7):
# we need unittest.skipIf, which isn't in unittest in python 2.6.
# note this causes a deprecation warning on django 1.7, but django 1.7 doesn't support python < 2.7
from django.utils import unittest
else:
import unittest

import django
from django.conf import settings
from django.contrib import admin
from django.contrib.auth.models import Group, User
from django.db.models import Q
try:
Expand Down

0 comments on commit 8097449

Please sign in to comment.