From 6ea80da079ceebd6e2441fa586ad5f704269a1b3 2020-10-17 18:34:56 From: LeafyLi Date: 2020-10-17 18:34:56 Subject: [PATCH] Simplify assignment in test_async_helpers Closes https://github.com/ipython/ipython/issues/11954 --- diff --git a/IPython/core/tests/test_async_helpers.py b/IPython/core/tests/test_async_helpers.py index 5dc43ca..6722fed 100644 --- a/IPython/core/tests/test_async_helpers.py +++ b/IPython/core/tests/test_async_helpers.py @@ -220,8 +220,7 @@ class AsyncTest(TestCase): nested_case = nest_case(context, test_case) for val, async_safe in vals: - val_should_fail = (should_fail or - (async_func and not async_safe)) + val_should_fail = should_fail test_id = (context_name, test_name, val) cell = nested_case.format(val=val)