Skip to content

Commit

Permalink
Working with django 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Cordero committed Oct 4, 2016
1 parent dbd47f7 commit e394606
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ env:
- DJANGO_VERSION=1.6.11
- DJANGO_VERSION=1.7
- DJANGO_VERSION=1.8
- DJANGO_VERSION=1.9
- DJANGO_VERSION=1.10
install:
- pip install . --use-mirrors
- pip install django==$DJANGO_VERSION
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='django-db-geventpool',
version='1.20.1',
version='1.21',
install_requires=[
'django>=1.5',
'psycopg2>=2.5.1',
Expand All @@ -23,6 +23,7 @@
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
author='Javier Cordero Martinez',
Expand Down
9 changes: 6 additions & 3 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

import gevent

from django.utils.unittest import TestCase
try:
from django.utils.unittest import TestCase
except ImportError: # removed at 1.9
from unittest import TestCase

from .models import TestModel

Expand All @@ -11,10 +14,10 @@

@close_connection
def test_multiple_connections(count):
print 'Test {0} starts'.format(count)
print('Test {0} starts'.format(count))
for x in range(0, 20):
assert len(TestModel.objects.all()) == 1
print 'Test {0} ends'.format(count)
print('Test {0} ends'.format(count))


class ModelTest(TestCase):
Expand Down

0 comments on commit e394606

Please sign in to comment.