summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/functional/a/assigment_from_no_return.py (renamed from tests/input/func_typecheck_callfunc_assigment.py)6
-rw-r--r--tests/functional/a/assigment_from_no_return.txt3
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/input/func_typecheck_callfunc_assigment.py b/tests/functional/a/assigment_from_no_return.py
index e493014e2..4cd5ef106 100644
--- a/tests/input/func_typecheck_callfunc_assigment.py
+++ b/tests/functional/a/assigment_from_no_return.py
@@ -15,7 +15,7 @@ def func_no_return():
"""function without return"""
print('dougloup')
-A = func_no_return()
+A = func_no_return() # [assignment-from-no-return]
def func_return_none():
@@ -23,14 +23,14 @@ def func_return_none():
print('dougloup')
return None
-A = func_return_none()
+A = func_return_none() # [assignment-from-none]
def func_implicit_return_none():
"""Function returning None from bare return statement."""
return
-A = func_implicit_return_none()
+A = func_implicit_return_none() # [assignment-from-none]
def func_return_none_and_smth():
diff --git a/tests/functional/a/assigment_from_no_return.txt b/tests/functional/a/assigment_from_no_return.txt
new file mode 100644
index 000000000..4518109ac
--- /dev/null
+++ b/tests/functional/a/assigment_from_no_return.txt
@@ -0,0 +1,3 @@
+assignment-from-no-return:18:0::Assigning result of a function call, where the function has no return
+assignment-from-none:26:0::Assigning result of a function call, where the function returns None
+assignment-from-none:33:0::Assigning result of a function call, where the function returns None