Skip to content

Commit

Permalink
Correct allow_failures for Travis
Browse files Browse the repository at this point in the history
Django 1.8 supports Python 3.5. It does raise a DeprecationWarning,
which is safe to ignore. We only care about DeprecationWarnings in our
own code.

And it seems that Travis wants all allowed failures listed explicitly,
so we do that. It should now pass again.
  • Loading branch information
maiksprenger committed Oct 27, 2015
1 parent cf02171 commit 0bf2e0a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,20 @@ env:
matrix:
exclude:
- python: 3.2
env: DJANGO=Django==1.9b1
env: "DJANGO=Django==1.9b1"
- python: 3.3
env: DJANGO=Django==1.9b1
env: "DJANGO=Django==1.9b1"
- python: 3.5
env: DJANGO=Django==1.7.10

env: "DJANGO=Django==1.7.10"
allow_failures:
- env: DJANGO=Django==1.9b1
- python: 3.5
env: DJANGO=Django==1.8.5
- python: 2.7
env: "DJANGO=Django==1.9b1"
- python: 3.3
env: "DJANGO=Django==1.9b1"
- python: 3.4
env: "DJANGO=Django==1.9b1"
- python: 3.5
env: "DJANGO=Django==1.9b1"


before_install:
Expand Down
2 changes: 1 addition & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
# thread safe. Behaviour with multiple threads is undefined.
warnings.filterwarnings('error', category=DeprecationWarning)
warnings.filterwarnings('error', category=RuntimeWarning)
libs = r'(sorl\.thumbnail.*|bs4.*|webtest.*)'
libs = r'(sorl\.thumbnail.*|bs4.*|webtest.*|inspect.*)'
warnings.filterwarnings(
'ignore', r'.*', DeprecationWarning, libs)

Expand Down

0 comments on commit 0bf2e0a

Please sign in to comment.