Skip to content

Commit 20b5cb8

Browse files
committed
Fixup.
1 parent a9ed339 commit 20b5cb8

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

notebook/tests/launchnotebook.py

-28
Original file line numberDiff line numberDiff line change
@@ -152,34 +152,6 @@ def tmp(*parts):
152152

153153
started = Event()
154154
def start_thread():
155-
if 'asyncio' in sys.modules:
156-
import asyncio
157-
asyncio.set_event_loop(asyncio.new_event_loop())
158-
bind_args = cls.get_bind_args()
159-
app = cls.notebook = NotebookApp(
160-
port_retries=0,
161-
open_browser=False,
162-
config_dir=cls.config_dir,
163-
data_dir=cls.data_dir,
164-
runtime_dir=cls.runtime_dir,
165-
notebook_dir=cls.notebook_dir,
166-
base_url=cls.url_prefix,
167-
config=config,
168-
allow_root=True,
169-
token=cls.token,
170-
**bind_args
171-
)
172-
# don't register signal handler during tests
173-
app.init_signal = lambda : None
174-
# clear log handlers and propagate to root for nose to capture it
175-
# needs to be redone after initialize, which reconfigures logging
176-
app.log.propagate = True
177-
app.log.handlers = []
178-
app.initialize(argv=cls.get_argv())
179-
app.log.propagate = True
180-
app.log.handlers = []
181-
loop = IOLoop.current()
182-
loop.add_callback(started.set)
183155
try:
184156
app = cls.notebook = NotebookApp(
185157
port=cls.port,

0 commit comments

Comments
 (0)