Skip to content

Commit

Permalink
Fix IPython tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks authored Jul 18, 2023
1 parent ac8142c commit 39e3a10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions trio/_core/_tests/test_multierror.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,10 +472,10 @@ def run_script(name, use_ipython=False):
return completed


def check_simple_excepthook(completed, uses_ipython):
def check_simple_excepthook(completed):
assert_match_in_seq(
[
"in <cell line: " if uses_ipython else "in <module>",
"in <module>",
"MultiError",
"--- 1 ---",
"in exc1_fn",
Expand All @@ -502,14 +502,14 @@ def check_simple_excepthook(completed, uses_ipython):
@need_ipython
def test_ipython_exc_handler():
completed = run_script("simple_excepthook.py", use_ipython=True)
check_simple_excepthook(completed, True)
check_simple_excepthook(completed)


@slow
@need_ipython
def test_ipython_imported_but_unused():
completed = run_script("simple_excepthook_IPython.py")
check_simple_excepthook(completed, False)
check_simple_excepthook(completed)


@slow
Expand Down

0 comments on commit 39e3a10

Please sign in to comment.