X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/9c9f6eb6d53c4a38c46acfcffa1c90a787a72a77..10d8976a79f5a7f7e5e36369a81d9e5c983332d1:/tests/expression.py?ds=sidebyside diff --git a/tests/expression.py b/tests/expression.py index e7054e3..cf37f8b 100644 --- a/tests/expression.py +++ b/tests/expression.py @@ -90,6 +90,7 @@ slice[:-1] slice[1:] slice[::-1] numpy[:, 0:1] +numpy[:, :-1] (str or None) if (sys.version_info[0] > (3,)) else (str or bytes or None) {'2.7': dead, '3.7': long_live or die_hard} {'2.7', '3.6', '3.7', '3.8', '3.9', '4.0' if gilectomy else '3.10'} @@ -118,6 +119,15 @@ 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 +last_call() +# standalone comment at ENDMARKER + # output @@ -223,6 +233,7 @@ slice[:-1] slice[1:] slice[::-1] numpy[:, 0:1] +numpy[:, :-1] (str or None) if (sys.version_info[0] > (3,)) else (str or bytes or None) {'2.7': dead, '3.7': long_live or die_hard} {'2.7', '3.6', '3.7', '3.8', '3.9', '4.0' if gilectomy else '3.10'} @@ -261,3 +272,14 @@ 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 + +last_call() +# standalone comment at ENDMARKER