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
2 changes: 2 additions & 0 deletions tests/magics/test_matplotlib_magic.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
import importlib.util
import sys

import pytest

Expand All @@ -20,6 +21,7 @@ def restore_ipython_display():
IPython.display.display = original


@pytest.mark.skipif(sys.platform != "linux", reason="Too slow on non-Linux CI")
def test_matplotlib_magic_sets_backend() -> None:
"""%matplotlib sets the matplotlib backend."""
import matplotlib
Expand Down
7 changes: 6 additions & 1 deletion tests/magics/test_parallel_magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@


@pytest.mark.skipif(ipyparallel is None, reason="Requires ipyparallel")
@pytest.mark.skipif(sys.platform == "darwin", reason="Fails on darwin")
@pytest.mark.skipif(
sys.platform != "linux", reason="Requires ipcluster; too slow on non-Linux CI"
)
def test_parallel_magic() -> None:
kernel = get_kernel(EvalKernel)
# start up an EvalKernel on each node:
Expand All @@ -31,6 +33,9 @@ def test_parallel_magic() -> None:


@pytest.mark.skipif(ipyparallel is None, reason="Requires ipyparallel")
@pytest.mark.skipif(
sys.platform != "linux", reason="Requires ipcluster; too slow on non-Linux CI"
)
def test_px_error_reports_exception_not_noisy_traceback() -> None:
"""%%px with failing code should report the remote error, not a noisy
'Error in calling magic' wrapper with full Python traceback (issue #61)."""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_expect.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def test_expect_eof(self) -> None:
assert the_old_way == the_new_way, hex_diff(the_old_way, the_new_way)

def test_expect_timeout(self) -> None:
p = pexpect.spawn("cat", timeout=5)
p = pexpect.spawn("cat", timeout=1)
p.expect(pexpect.TIMEOUT) # This tells it to wait for timeout.
self.assertEqual(p.after, pexpect.TIMEOUT)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_process_metakernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_process_metakernel() -> None:
kernel.Display(html)

asyncio.run(
kernel.do_execute(r'for i in {1..3};do echo -ne "$i\r"; sleep 1; done', None)
kernel.do_execute(r'for i in {1..3};do echo -ne "$i\r"; sleep 0.1; done', None)
)
text = get_log_text(kernel)
assert r"1\r2\r3\r" in text
2 changes: 1 addition & 1 deletion tests/test_replwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_bash(self) -> None:
assert "SLEEP" in res, res

# should handle CR by default
cmd = r'for i in {1..3};do echo -ne "\r$i"; sleep 1; done'
cmd = r'for i in {1..3};do echo -ne "\r$i"; sleep 0.1; done'
res = bash.run_command(cmd)
assert "\r1\r2\r3" in res

Expand Down
Loading