Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions jupyter_console/tests/test_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import tempfile
from subprocess import check_output

from flaky import flaky
import pytest

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


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


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


def test_multiprocessing():
p, pexpect, t = start_console()
p.sendline('')


def test_generate_config():
"""jupyter console --generate-config works"""
td = tempfile.mkdtemp()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
'traitlets>=5.4'
],
extras_require={
'test': ['pexpect', 'pytest'],
'test': ['pexpect', 'pytest', 'flaky'],
},
python_requires='>=3.7',
entry_points={
Expand Down