--- /dev/null
+[run]
+branch = True
+source = dns
html.tar.gz
tests/*.out
*.pyc
+.coverage
+.tox
+dnspython.egg-info/
+.eggs/
language: python
python:
+ - "2.6"
- "2.7"
-script: make test
+ # 3.2 make unicode literal handling difficult.
+ # we dropped that, see https://github.com/rthalley/dnspython/pull/148
+ # for comments
+ #- "3.2"
+ - "3.3"
+ - "3.4"
+ - "3.5"
+ - "3.5-dev" # 3.5 development branch
+ - "nightly" # currently points to 3.6-dev
+install:
+ - pip install unittest2
+script:
+ - make test
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import cStringIO
-import unittest
+from six import BytesIO
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.rdata
import dns.rdataclass
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.dnssec
import dns.name
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
import binascii
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
from dns.exception import DNSException
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.flags
import dns.rcode
import cStringIO
import filecmp
import os
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.exception
import dns.rdata
import cStringIO
import filecmp
import os
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns
import dns.exception
import cStringIO
import os
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.exception
import dns.message
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import cStringIO
import socket
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.name
import dns.namedict
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.exception
import dns.ipv4
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.rdata
import dns.rdataclass
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.rdataclass
import dns.rdatatype
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.rrset
import dns.rdtypes.ANY.DNSKEY
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
try:
from StringIO import StringIO
except ImportError:
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.rrset
import dns.rdtypes.ANY.LOC
import select
import sys
import time
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.name
import dns.message
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.rrset
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.set
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.update
import dns.rdata
import cStringIO
import filecmp
import os
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import dns.exception
import dns.rdata
import os.path
import sys
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
if __name__ == '__main__':
sys.path.insert(0, os.path.realpath('..'))
--- /dev/null
+[tox]
+envlist =
+ py26,
+ py27,
+ py30,
+ py31,
+ py32,
+ py33,
+ py34,
+# py35,
+ flake8,
+# pylint,
+ coverage
+
+[testenv]
+
+commands=
+ python setup.py test
+
+deps=
+
+[testenv:py26]
+deps =
+ unittest2
+
+
+[testenv:flake8]
+commands =
+ pip install flake8
+ flake8 dns
+
+[testenv:coverage]
+basepython = python2
+
+deps =
+ coverage
+
+commands =
+ python setup.py install
+ coverage run --rcfile=.coverage.ini setup.py test
+ coverage report
+
+[pep8]
+show-pep8 = True
+show-source = True
+