diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-12-19 18:05:32 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-12-19 18:20:36 +0100 |
commit | 476a924c37ecda6b6f6df36899e6d92b0aaf3e7a (patch) | |
tree | cd5630640ef4f14d138ba6564bad47711402dd35 | |
parent | 4bc4bcb68b338ee96b2e698d34d32ea37b5530cf (diff) | |
download | pylint-git-476a924c37ecda6b6f6df36899e6d92b0aaf3e7a.tar.gz |
[regression test] Add functional test for symlinked modules
This is a regression test for https://github.com/PyCQA/astroid/issues/1253
Closes #1470
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | doc/whatsnew/2.13.rst | 9 | ||||
l--------- | tests/functional/s/symlink/binding/__init__.py | 1 | ||||
l--------- | tests/functional/s/symlink/binding/symlinked_module.py | 1 | ||||
-rw-r--r-- | tests/functional/s/symlink/module/__init__.py | 3 | ||||
-rw-r--r-- | tests/functional/s/symlink/module/symlinked_module.py | 6 |
6 files changed, 31 insertions, 2 deletions
@@ -6,11 +6,20 @@ What's New in Pylint 2.13.0? ============================ Release date: TBA -* Pyreverse - add output in mermaidjs format - .. Put new features here and also in 'doc/whatsnew/2.13.rst' +* An astroid issue where symlinks were not being taken into account + was fixed + + Closes #1470 + Closes #3499 + Closes #4302 + Closes #4798 + Closes #5081 + +* Pyreverse - add output in mermaidjs format + * ``used-before-assignment`` now considers that assignments in a try block may not have occurred when the except or finally blocks are executed. diff --git a/doc/whatsnew/2.13.rst b/doc/whatsnew/2.13.rst index 357f78b59..970a0db14 100644 --- a/doc/whatsnew/2.13.rst +++ b/doc/whatsnew/2.13.rst @@ -32,6 +32,15 @@ Extensions Other Changes ============= +* An astroid issue where symlinks were not being taken into account + was fixed + + Closes #1470 + Closes #3499 + Closes #4302 + Closes #4798 + Closes #5081 + * Fixed extremely long processing of long lines with comma's. Closes #5483 diff --git a/tests/functional/s/symlink/binding/__init__.py b/tests/functional/s/symlink/binding/__init__.py new file mode 120000 index 000000000..70a3e97c5 --- /dev/null +++ b/tests/functional/s/symlink/binding/__init__.py @@ -0,0 +1 @@ +../module/__init__.py
\ No newline at end of file diff --git a/tests/functional/s/symlink/binding/symlinked_module.py b/tests/functional/s/symlink/binding/symlinked_module.py new file mode 120000 index 000000000..09382e43e --- /dev/null +++ b/tests/functional/s/symlink/binding/symlinked_module.py @@ -0,0 +1 @@ +../module/symlinked_module.py
\ No newline at end of file diff --git a/tests/functional/s/symlink/module/__init__.py b/tests/functional/s/symlink/module/__init__.py new file mode 100644 index 000000000..cc8f6e411 --- /dev/null +++ b/tests/functional/s/symlink/module/__init__.py @@ -0,0 +1,3 @@ +"""Example taken from issue #1470""" + +from symlinked_module import func diff --git a/tests/functional/s/symlink/module/symlinked_module.py b/tests/functional/s/symlink/module/symlinked_module.py new file mode 100644 index 000000000..c28a97a30 --- /dev/null +++ b/tests/functional/s/symlink/module/symlinked_module.py @@ -0,0 +1,6 @@ +"""Example taken from issue #1470""" + + +def func(): + """Both module should be parsed without problem""" + return 1 |