Django 1.8 alpha 1 support

* Test on Python 2.7, 3.4, pypy.
* Call super.setUpClass in DjrillAdminTests.
  https://docs.djangoproject.com/en/dev/releases/1.8/#overriding-setupclass-teardownclass-in-test-cases

Also clear up some new PendingDeprecationWarnings, where
the changes can easily remain compatible back to Django 1.3:

* Remove deprecated django.conf.urls.patterns.
  (And match Django recommendations in our docs.)
  https://docs.djangoproject.com/en/dev/releases/1.8/#django-conf-urls-patterns
* Remove deprecated SimpleTestCase.urls.
  (We've already back-ported @override_settings
  for testing older Django versions.)
  https://docs.djangoproject.com/en/dev/releases/1.8/#django-test-simpletestcase-urls
This commit is contained in:
medmunds
2015-01-16 16:17:31 -08:00
parent 00a0a1fde6
commit 8ab36d2cd0
8 changed files with 34 additions and 28 deletions

View File

@@ -38,9 +38,13 @@ matrix:
env: DJANGO=django==1.7
- python: "pypy"
env: DJANGO=django==1.7
# Django 1.8beta: tbd...
# - python: "2.7"
# env: DJANGO=https://www.djangoproject.com/download/1.8b1/tarball/
# Django 1.8alpha: "Python 2.7 or above"
- python: "2.7"
env: DJANGO=https://www.djangoproject.com/download/1.8a1/tarball/
- python: "3.4"
env: DJANGO=https://www.djangoproject.com/download/1.8a1/tarball/
- python: "pypy"
env: DJANGO=https://www.djangoproject.com/download/1.8a1/tarball/
install:
- pip install -q $DJANGO
- pip install .