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