diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-01-03 20:09:10 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-01-03 20:11:31 +0100 |
commit | 0e4be84fd6693582810855b00c32eb9e5b597c0e (patch) | |
tree | aef650f71da1f5a42ee11731280cd0d3c7d8e635 /tox.ini | |
parent | 55d80199c8ed723c7607a09d5e628c1d7949316f (diff) | |
download | gemato-0e4be84fd6693582810855b00c32eb9e5b597c0e.tar.gz |
compression: Prevent using incompatible 'lzma' module from pyliblzma
Try importing the 'lzma' module only in Python 3.3+, that is versions
known to have it built-in. This way, we can prevent accidentally
importing incompatible module using the same name, e.g. pyliblzma.
Bug: https://bugs.gentoo.org/643254
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,5 @@ [tox] -envlist = begin,py27,py34,py35,py36,pypy,pypy3,nodeps,end +envlist = begin,py27,py34,py35,py36,pypy,pypy3,incompatible-lzma,nodeps,end # we operate on sources anyway skipsdist = True @@ -54,6 +54,12 @@ basepython = python2.7 deps = coverage +[testenv:incompatible-lzma] +basepython = python2.7 +deps = + coverage + pyliblzma + [testenv] commands = coverage run -p -m unittest discover -v |