Skip to content

Commit

Permalink
Merge pull request #3398 from minrk/tornado5
Browse files Browse the repository at this point in the history
Get tests running with tornado 5
  • Loading branch information
minrk authored Mar 5, 2018
2 parents f00215b + a9d2c17 commit ae1f167
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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


Expand Down
3 changes: 2 additions & 1 deletion notebook/services/kernels/tests/test_kernels_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ def restart(self, id):

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)


Expand Down
3 changes: 3 additions & 0 deletions notebook/tests/launchnotebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ def tmp(*parts):

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,
Expand Down

0 comments on commit ae1f167

Please sign in to comment.