File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
ipykernel/inprocess/tests Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (c) IPython Development Team.
2
2
# Distributed under the terms of the Modified BSD License.
3
3
4
+ import asyncio
4
5
import sys
5
6
import unittest
6
7
from contextlib import contextmanager
@@ -148,3 +149,8 @@ def test_getpass_stream(self):
148
149
kernel ._input_request = lambda * args , ** kwargs : None
149
150
150
151
kernel .getpass (stream = "non empty" )
152
+
153
+ def test_do_execute (self ):
154
+ kernel = InProcessKernel ()
155
+ asyncio .run (kernel .do_execute ("a=1" , True ))
156
+ assert kernel .shell .user_ns ["a" ] == 1
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ tag_template = "v{new_version}"
30
30
src = " ipykernel/_version.py"
31
31
32
32
[tool .pytest .ini_options ]
33
- addopts = " -raXs --durations 10 --color=yes --doctest-modules"
33
+ addopts = " -raXs --durations 10 --color=yes --doctest-modules --ignore=ipykernel/pylab/backend_inline.py --ignore=ipykernel/pylab/config.py --ignore=ipykernel/gui/gtk3embed.py --ignore=ipykernel/gui/gtkembed.py --ignore=ipykernel/datapub.py --ignore=ipykernel/log.py --ignore=ipykernel/pickleutil.py --ignore=ipykernel/serialize.py "
34
34
testpaths = [
35
- " ipykernel/tests/ "
35
+ " ipykernel/"
36
36
]
37
37
timeout = 300
38
38
# Restore this setting to debug failures
@@ -41,6 +41,9 @@ filterwarnings= [
41
41
# Fail on warnings
42
42
" error" ,
43
43
44
+ # https://github.com/minrk/appnope/issues/13
45
+ " ignore:distutils Version classes are deprecated:DeprecationWarning:appnope" ,
46
+
44
47
# Ignore jupyter_client warnings
45
48
" ignore:unclosed <socket.socket:ResourceWarning" ,
46
49
" ignore:unclosed event loop:ResourceWarning" ,
Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ def run(self):
81
81
"ipyparallel" ,
82
82
"pre-commit" ,
83
83
"pytest-timeout" ,
84
+ "gobject" ,
85
+ "trio" ,
84
86
],
85
87
},
86
88
classifiers = [
You can’t perform that action at this time.
0 commit comments