summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/andor.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/andor.py')
-rw-r--r--tests/basics/andor.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/andor.py b/tests/basics/andor.py
new file mode 100644
index 0000000000..4deddaf8b5
--- /dev/null
+++ b/tests/basics/andor.py
@@ -0,0 +1,5 @@
+# test short circuit expressions outside if conditionals
+print(() or 1)
+print((1,) or 1)
+print(() and 1)
+print((1,) and 1)