File tree 3 files changed +24
-7
lines changed
3 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,33 @@ python:
5
5
- " 3.4"
6
6
- " 3.5"
7
7
- " 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
+
10
14
branches :
11
15
only :
12
16
- master
17
+
18
+ cache :
19
+ directories :
20
+ - $HOME/.cache/pip
21
+ before_cache :
22
+ - rm -f $HOME/.cache/pip/log/debug.log
23
+
13
24
install :
14
25
- pip install coveralls
26
+ - pip install -U wheel
15
27
- pip install -r requirements.txt
16
28
- pip install -r requirements-dev.txt
17
29
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; fi
30
+
18
31
script :
19
32
- nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/ tests
20
33
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pre-commit run --all-files; fi
21
34
- python ./setup.py bdist_dumb
35
+
22
36
after_success :
23
- coveralls
37
+ coveralls
Original file line number Diff line number Diff line change @@ -15,12 +15,14 @@ environment:
15
15
install :
16
16
# We need wheel installed to build wheels
17
17
- " git submodule update --init --recursive"
18
- - " %PYTHON%\\ python.exe -m pip install wheel"
18
+ - " %PYTHON%\\ python.exe -m pip install -U wheel"
19
19
- " %PYTHON%\\ python.exe -m pip install -r requirements.txt"
20
20
- " %PYTHON%\\ python.exe -m pip install -r requirements-dev.txt"
21
21
22
22
build : off
23
23
24
+ cache : C:\Users\appveyor\pip\wheels
25
+
24
26
test_script :
25
27
- " %python%\\ Scripts\\ nosetests -v --with-flaky --no-flaky-report tests"
26
28
Original file line number Diff line number Diff line change 2
2
import inspect
3
3
import warnings
4
4
from collections import namedtuple
5
+ import platform
5
6
6
7
import certifi
7
8
import logging
@@ -110,9 +111,9 @@ def check_object(h4):
110
111
111
112
112
113
def 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)' )
116
117
return
117
118
118
119
http = urllib3 .PoolManager (
You can’t perform that action at this time.
0 commit comments