File tree Expand file tree Collapse file tree 3 files changed +24
-7
lines changed
Expand file tree Collapse file tree 3 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,33 @@ python:
55 - " 3.4"
66 - " 3.5"
77 - " 3.6"
8- - " pypy"
9- - " pypy3"
8+ - " pypy-5.7.1"
9+ - " pypy3.5-5.8.0"
10+
11+ dist : trusty
12+ sudo : false
13+
1014branches :
1115 only :
1216 - master
17+
18+ cache :
19+ directories :
20+ - $HOME/.cache/pip
21+ before_cache :
22+ - rm -f $HOME/.cache/pip/log/debug.log
23+
1324install :
1425 - pip install coveralls
26+ - pip install -U wheel
1527 - pip install -r requirements.txt
1628 - pip install -r requirements-dev.txt
1729 - if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; fi
30+
1831script :
1932 - nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/ tests
2033 - if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pre-commit run --all-files; fi
2134 - python ./setup.py bdist_dumb
35+
2236after_success :
23- coveralls
37+ coveralls
Original file line number Diff line number Diff line change @@ -15,12 +15,14 @@ environment:
1515install :
1616 # We need wheel installed to build wheels
1717 - " git submodule update --init --recursive"
18- - " %PYTHON%\\ python.exe -m pip install wheel"
18+ - " %PYTHON%\\ python.exe -m pip install -U wheel"
1919 - " %PYTHON%\\ python.exe -m pip install -r requirements.txt"
2020 - " %PYTHON%\\ python.exe -m pip install -r requirements-dev.txt"
2121
2222build : off
2323
24+ cache : C:\Users\appveyor\pip\wheels
25+
2426test_script :
2527 - " %python%\\ Scripts\\ nosetests -v --with-flaky --no-flaky-report tests"
2628
Original file line number Diff line number Diff line change 22import inspect
33import warnings
44from collections import namedtuple
5+ import platform
56
67import certifi
78import logging
@@ -110,9 +111,9 @@ def check_object(h4):
110111
111112
112113def test_official ():
113- if not sys .version_info >= (3 , 5 ):
114- warnings .warn ('Not running tests, since follow_wrapped is not supported on this platform '
115- '(python version >= 3.5 required)' )
114+ if not sys .version_info >= (3 , 5 ) or platform . python_implementation () != 'CPython' :
115+ warnings .warn ('Not running "official" tests, since follow_wrapped is not supported'
116+ 'on this platform (cpython version >= 3.5 required)' )
116117 return
117118
118119 http = urllib3 .PoolManager (
You can’t perform that action at this time.
0 commit comments