Merge pull request #3398 from minrk/tornado5

Get tests running with tornado 5
pull/3399/head
Min RK 8 years ago committed by GitHub
commit ae1f167dc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,7 +34,6 @@ before_install:
if [[ $GROUP == js* ]]; then
npm install -g casperjs@1.1.3 phantomjs-prebuilt@2.1.7
fi
- git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
- |
if [[ $GROUP == docs ]]; then
pip install -r docs/doc-requirements.txt
@ -50,7 +49,7 @@ before_install:
fi
install:
- pip install -f travis-wheels/wheelhouse file://$PWD#egg=notebook[test]
- pip install --pre .[test]
- wget https://github.com/jgm/pandoc/releases/download/1.19.1/pandoc-1.19.1-1-amd64.deb && sudo dpkg -i pandoc-1.19.1-1-amd64.deb

@ -53,11 +53,12 @@ class KernelAPI(object):
def websocket(self, id):
loop = IOLoop()
loop.make_current()
req = HTTPRequest(
url_path_join(self.base_url.replace('http', 'ws', 1), 'api/kernels', id, 'channels'),
headers=self.headers,
)
f = websocket_connect(req, io_loop=loop)
f = websocket_connect(req)
return loop.run_sync(lambda : f)

@ -135,6 +135,9 @@ class NotebookTestBase(TestCase):
started = Event()
def start_thread():
if 'asyncio' in sys.modules:
import asyncio
asyncio.set_event_loop(asyncio.new_event_loop())
app = cls.notebook = NotebookApp(
port=cls.port,
port_retries=0,

Loading…
Cancel
Save