diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-07 22:45:52 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-07 22:59:36 +0100 |
commit | ba4941b96c12f32d1eb91868c1ce040f3f7f48e2 (patch) | |
tree | 55a6917e2e0bca2aa8cc47908d37dd0ee7372447 | |
parent | f84bf0220812a987595f719acad0be6e8cf0f982 (diff) | |
download | pylint-git-ba4941b96c12f32d1eb91868c1ce040f3f7f48e2.tar.gz |
Migrate func_typecheck_callfunc_assigment.py to new functional tests
-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.txt | 3 |
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 |