Skip to content

Commit 6db557c

Browse files
authored
Merge pull request #280 from blink1073/use-flaky
2 parents fbcd520 + 80dc5e2 commit 6db557c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

jupyter_console/tests/test_console.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import tempfile
1010
from subprocess import check_output
1111

12+
from flaky import flaky
1213
import pytest
1314

1415
from traitlets.tests.utils import check_help_all_output
@@ -17,6 +18,7 @@
1718
should_skip = sys.platform == "win32" or sys.version_info < (3,8) or sys.version_info[:2] == (3, 10)
1819

1920

21+
@flaky
2022
@pytest.mark.skipif(should_skip, reason="not supported")
2123
def test_console_starts():
2224
"""test that `jupyter console` starts a terminal"""
@@ -31,6 +33,7 @@ def test_help_output():
3133
check_help_all_output('jupyter_console')
3234

3335

36+
@flaky
3437
@pytest.mark.skipif(should_skip, reason="not supported")
3538
def test_display_text():
3639
"Ensure display protocol plain/text key is supported"
@@ -77,6 +80,11 @@ def start_console():
7780
return p, pexpect, t
7881

7982

83+
def test_multiprocessing():
84+
p, pexpect, t = start_console()
85+
p.sendline('')
86+
87+
8088
def test_generate_config():
8189
"""jupyter console --generate-config works"""
8290
td = tempfile.mkdtemp()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
'traitlets>=5.4'
6060
],
6161
extras_require={
62-
'test': ['pexpect', 'pytest'],
62+
'test': ['pexpect', 'pytest', 'flaky'],
6363
},
6464
python_requires='>=3.7',
6565
entry_points={

0 commit comments

Comments
 (0)