summaryrefslogtreecommitdiff
path: root/tests/functional/c/comparison_with_callable.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/c/comparison_with_callable.py')
-rw-r--r--tests/functional/c/comparison_with_callable.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/functional/c/comparison_with_callable.py b/tests/functional/c/comparison_with_callable.py
index fb02729d8..2afe43035 100644
--- a/tests/functional/c/comparison_with_callable.py
+++ b/tests/functional/c/comparison_with_callable.py
@@ -58,3 +58,14 @@ a = 666
b = 786
if a == b:
pass
+
+
+def eventually_raise():
+ print()
+ raise Exception
+
+
+if a == eventually_raise:
+ # Does not emit comparison-with-callable because the
+ # function (eventually) raises
+ pass