Try to fix up tests, Python 3.8 warnings

This commit is contained in:
Friedrich Lindenberg 2019-01-31 14:56:19 +01:00
parent 163e6554cc
commit 8324350f2e
4 changed files with 12 additions and 2 deletions

View File

@ -1,8 +1,8 @@
language: python language: python
python: python:
- '3.7'
- '3.6' - '3.6'
- '3.5' - '3.5'
- '3.4'
- '2.7' - '2.7'
services: services:
- mysql - mysql

View File

@ -1,6 +1,10 @@
import six import six
from hashlib import sha1 from hashlib import sha1
from collections import OrderedDict, Iterable try:
from collections.abc import Iterable
except ImportError:
from collections as Iterable
from collections import OrderedDict
from six.moves.urllib.parse import urlparse from six.moves.urllib.parse import urlparse
QUERY_STEP = 1000 QUERY_STEP = 1000

View File

@ -1,3 +1,4 @@
# coding: utf-8
from __future__ import unicode_literals from __future__ import unicode_literals
import os import os

5
tox.ini Normal file
View File

@ -0,0 +1,5 @@
[tox]
envlist = py27,py37
[textenv]
deps=nose
commands=python setup.py test