Commit f8f2e59f authored by Jason Madden's avatar Jason Madden

Test 3.6.7 and 3.7.1

parent 7b6af6fa
...@@ -130,8 +130,8 @@ PY278=$(BUILD_RUNTIMES)/snakepit/python2.7.8 ...@@ -130,8 +130,8 @@ PY278=$(BUILD_RUNTIMES)/snakepit/python2.7.8
PY27=$(BUILD_RUNTIMES)/snakepit/python2.7.15 PY27=$(BUILD_RUNTIMES)/snakepit/python2.7.15
PY34=$(BUILD_RUNTIMES)/snakepit/python3.4.8 PY34=$(BUILD_RUNTIMES)/snakepit/python3.4.8
PY35=$(BUILD_RUNTIMES)/snakepit/python3.5.5 PY35=$(BUILD_RUNTIMES)/snakepit/python3.5.5
PY36=$(BUILD_RUNTIMES)/snakepit/python3.6.6 PY36=$(BUILD_RUNTIMES)/snakepit/python3.6.7
PY37=$(BUILD_RUNTIMES)/snakepit/python3.7.0 PY37=$(BUILD_RUNTIMES)/snakepit/python3.7.1
PYPY=$(BUILD_RUNTIMES)/snakepit/pypy600 PYPY=$(BUILD_RUNTIMES)/snakepit/pypy600
PYPY3=$(BUILD_RUNTIMES)/snakepit/pypy3.5_600 PYPY3=$(BUILD_RUNTIMES)/snakepit/pypy3.5_600
...@@ -194,10 +194,10 @@ test-py35: $(PY35) ...@@ -194,10 +194,10 @@ test-py35: $(PY35)
PYTHON=python3.5.5 PATH=$(BUILD_RUNTIMES)/versions/python3.5.5/bin:$(PATH) make develop basictest PYTHON=python3.5.5 PATH=$(BUILD_RUNTIMES)/versions/python3.5.5/bin:$(PATH) make develop basictest
test-py36: $(PY36) test-py36: $(PY36)
PYTHON=python3.6.6 PATH=$(BUILD_RUNTIMES)/versions/python3.6.6/bin:$(PATH) make develop lint allbackendtest PYTHON=python3.6.7 PATH=$(BUILD_RUNTIMES)/versions/python3.6.7/bin:$(PATH) make develop lint allbackendtest
test-py37: $(PY37) test-py37: $(PY37)
LD_LIBRARY_PATH=$(BUILD_RUNTIMES)/versions/python3.7.0/openssl/lib PYTHON=python3.7.0 PATH=$(BUILD_RUNTIMES)/versions/python3.7.0/bin:$(PATH) make develop leaktest cffibackendtest coverage_combine LD_LIBRARY_PATH=$(BUILD_RUNTIMES)/versions/python3.7.1/openssl/lib PYTHON=python3.7.1 PATH=$(BUILD_RUNTIMES)/versions/python3.7.1/bin:$(PATH) make develop leaktest cffibackendtest coverage_combine
test-pypy: $(PYPY) test-pypy: $(PYPY)
PYTHON=$(PYPY) PATH=$(BUILD_RUNTIMES)/versions/pypy600/bin:$(PATH) make develop cffibackendtest PYTHON=$(PYPY) PATH=$(BUILD_RUNTIMES)/versions/pypy600/bin:$(PATH) make develop cffibackendtest
......
...@@ -49,7 +49,7 @@ PYENV=$BASE/pyenv ...@@ -49,7 +49,7 @@ PYENV=$BASE/pyenv
# The file for 3.7b1 shipped with pyenv on Feb 6 2018 # The file for 3.7b1 shipped with pyenv on Feb 6 2018
# won't compile on Travis. So we use a forked version that # won't compile on Travis. So we use a forked version that
# compiles openssl for us. We also beat them to the punch for 3.7b2, b3, b4 # compiles openssl for us. We also beat them to the punch for 3.7b2, b3, b4, .0, .1
# https://github.com/travis-ci/travis-ci/issues/9069 # https://github.com/travis-ci/travis-ci/issues/9069
if [ ! -d "$PYENV/.git" ]; then if [ ! -d "$PYENV/.git" ]; then
...@@ -105,10 +105,10 @@ for var in "$@"; do ...@@ -105,10 +105,10 @@ for var in "$@"; do
install 3.5.5 python3.5.5 install 3.5.5 python3.5.5
;; ;;
3.6) 3.6)
install 3.6.6 python3.6.6 install 3.6.7 python3.6.7
;; ;;
3.7) 3.7)
install 3.7.0 python3.7.0 install 3.7.1 python3.7.1
;; ;;
pypy) pypy)
install pypy2.7-6.0.0 pypy600 install pypy2.7-6.0.0 pypy600
......
# See issue #466 # See issue #466
import unittest
import ctypes import ctypes
...@@ -20,15 +21,19 @@ def _send(socket): ...@@ -20,15 +21,19 @@ def _send(socket):
getattr(sock, meth)(anStructure) getattr(sock, meth)(anStructure)
sock.close() sock.close()
def TestSendBuiltinSocket(): class TestSendBuiltinSocket(unittest.TestCase):
import socket
_send(socket)
def test_send(self):
import socket
_send(socket)
class TestSendGeventSocket(unittest.TestCase):
def test_send(self):
import gevent.socket
_send(gevent.socket)
def TestSendGeventSocket():
import gevent.socket
_send(gevent.socket)
if __name__ == '__main__': if __name__ == '__main__':
TestSendBuiltinSocket() unittest.main()
TestSendGeventSocket()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment