File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 9
9
import tempfile
10
10
from subprocess import check_output
11
11
12
+ from flaky import flaky
12
13
import pytest
13
14
14
15
from traitlets .tests .utils import check_help_all_output
17
18
should_skip = sys .platform == "win32" or sys .version_info < (3 ,8 ) or sys .version_info [:2 ] == (3 , 10 )
18
19
19
20
21
+ @flaky
20
22
@pytest .mark .skipif (should_skip , reason = "not supported" )
21
23
def test_console_starts ():
22
24
"""test that `jupyter console` starts a terminal"""
@@ -31,6 +33,7 @@ def test_help_output():
31
33
check_help_all_output ('jupyter_console' )
32
34
33
35
36
+ @flaky
34
37
@pytest .mark .skipif (should_skip , reason = "not supported" )
35
38
def test_display_text ():
36
39
"Ensure display protocol plain/text key is supported"
@@ -77,6 +80,11 @@ def start_console():
77
80
return p , pexpect , t
78
81
79
82
83
+ def test_multiprocessing ():
84
+ p , pexpect , t = start_console ()
85
+ p .sendline ('' )
86
+
87
+
80
88
def test_generate_config ():
81
89
"""jupyter console --generate-config works"""
82
90
td = tempfile .mkdtemp ()
Original file line number Diff line number Diff line change 59
59
'traitlets>=5.4'
60
60
],
61
61
extras_require = {
62
- 'test' : ['pexpect' , 'pytest' ],
62
+ 'test' : ['pexpect' , 'pytest' , 'flaky' ],
63
63
},
64
64
python_requires = '>=3.7' ,
65
65
entry_points = {
You can’t perform that action at this time.
0 commit comments