File tree Expand file tree Collapse file tree 4 files changed +48
-13
lines changed
Expand file tree Collapse file tree 4 files changed +48
-13
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ addons:
1717 - swig
1818 # needed for GMPY
1919 - libgmp-dev
20+ # needed for GMPY2
21+ - libmpfr-dev
22+ - libmpc-dev
2023before_cache :
2124 - rm -f $HOME/.cache/pip/log/debug.log
2225
2629 env : TACKPY=false
2730 - python : 2.7
2831 env : TACKPY=false
32+ - python : 3.3
33+ env : TACKPY=false
2934 - python : 3.4
3035 env : TACKPY=false
3136 - python : 3.5
6065 dist : xenial
6166 sudo : true
6267 env : M2CRYPTO=true
68+ - python : 3.8
69+ dist : xenial
70+ sudo : true
71+ env : M2CRYPTO=true
72+ - python : 3.9
73+ dist : xenial
74+ sudo : true
75+ env : M2CRYPTO=true
6376 - python : 2.7
6477 env : PYCRYPTO=true
6578 - python : 3.4
@@ -138,14 +151,13 @@ script:
138151 fi
139152 - make test-local
140153 # --appends is supported only in the new coverage (>4)
141- - if [[ $TRAVIS_PYTHON_VERSION != '3.2' ]]; then coverage combine --append; fi
154+ - coverage combine --append
142155 - coverage report -m
143156 - ./setup.py install
144157 - make test
145158 # pylint doesn't work on 2.6: https://bitbucket.org/logilab/pylint/issue/390/py26-compatiblity-broken
146- # diff-quality doesn't work on 3.2: https://github.com/edx/diff-cover/issues/94
147159 - |
148- if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]] && [[ $TRAVIS_PYTHON_VERSION != '3.2' ]] ; then
160+ if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then
149161 pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" tlslite > pylint_report.txt || :
150162 diff-quality --violations=pylint --fail-under=90 pylint_report.txt
151163 fi
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ enum34
2+ coverage<5.0
3+ hypothesis<3.44
4+ coveralls
5+ pylint
6+ diff_cover<2.5.0
7+ typed-ast<1.3.0
8+ inflect<4.0.0
Original file line number Diff line number Diff line change 1919from tlslite .utils .deprecations import deprecated_params , \
2020 deprecated_attrs
2121
22+ # see https://github.com/pytest-dev/py/issues/110
23+ # preload the list until the list of loaded modules is static
24+ try :
25+ import py .error
26+ except ImportError :
27+ pass # ignore
28+ import sys
29+ while True :
30+ end = True
31+ for v in list (sys .modules .values ()):
32+ old = set (sys .modules .values ())
33+ _ = getattr (v , '__warningregistry__' , None )
34+ new = set (sys .modules .values ())
35+ if new - old :
36+ end = False
37+ if end :
38+ break
39+ for v in list (sys .modules .values ()):
40+ old = set (sys .modules .values ())
41+ _ = getattr (v , '__warningregistry__' , None )
42+ new = set (sys .modules .values ())
43+ if new - old :
44+ print ("changed: {0}" .format (new - old ))
45+
46+
2247
2348class TestDeprecatedParams (unittest .TestCase ):
2449 def test_no_changes (self ):
You can’t perform that action at this time.
0 commit comments