summaryrefslogtreecommitdiff
path: root/tests/errors/e_binop_or.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/e_binop_or.pyx')
-rw-r--r--tests/errors/e_binop_or.pyx14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/errors/e_binop_or.pyx b/tests/errors/e_binop_or.pyx
new file mode 100644
index 000000000..1e4109244
--- /dev/null
+++ b/tests/errors/e_binop_or.pyx
@@ -0,0 +1,14 @@
+# mode: error
+# tag: or, binop, warnings
+
+def test_or(a, b):
+ return a || b
+
+
+_WARNINGS = """
+5:13: Found the C operator '||', did you mean the Python operator 'or'?
+"""
+
+_ERRORS = """
+5:13: Syntax error in simple statement list
+"""