Skip to content

Commit

Permalink
[regression test] Add functional test for symlinked modules
Browse files Browse the repository at this point in the history
This is a regression test for pylint-dev/astroid#1253

Closes #1470
  • Loading branch information
Pierre-Sassoulas committed Dec 19, 2021
1 parent 4bc4bcb commit 476a924
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 2 deletions.
13 changes: 11 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
9 changes: 9 additions & 0 deletions doc/whatsnew/2.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/functional/s/symlink/binding/__init__.py
1 change: 1 addition & 0 deletions tests/functional/s/symlink/binding/symlinked_module.py
3 changes: 3 additions & 0 deletions tests/functional/s/symlink/module/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""Example taken from issue #1470"""

from symlinked_module import func
6 changes: 6 additions & 0 deletions tests/functional/s/symlink/module/symlinked_module.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""Example taken from issue #1470"""


def func():
"""Both module should be parsed without problem"""
return 1

0 comments on commit 476a924

Please sign in to comment.