X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/28d1442d573abc9aeb567242f584f38eaec3f922..497de7fa08b5072da3cf328e6b870ce2575cb2a7:/tests/expression.py diff --git a/tests/expression.py b/tests/expression.py index e7054e3..87a03f6 100644 --- a/tests/expression.py +++ b/tests/expression.py @@ -118,6 +118,12 @@ def gen(): async def f(): await some.complicated[0].call(with_args=(True or (1 is not 1))) +if ( + threading.current_thread() != threading.main_thread() and + threading.current_thread() != threading.main_thread() or + signal.getsignal(signal.SIGINT) != signal.default_int_handler +): + return True # output @@ -261,3 +267,11 @@ def gen(): async def f(): await some.complicated[0].call(with_args=(True or (1 is not 1))) + + +if ( + threading.current_thread() != threading.main_thread() + and threading.current_thread() != threading.main_thread() + or signal.getsignal(signal.SIGINT) != signal.default_int_handler +): + return True