X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/9c9f6eb6d53c4a38c46acfcffa1c90a787a72a77..c90cf42d7ce0e529af677e082ab651180339084b:/tests/expression.py?ds=sidebyside 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