Skip to content

Commit c3767e6

Browse files
[regression test] Add functional test for symlinked modules
This is a regression test for pylint-dev/astroid#1253 Closes #1470
1 parent 814758c commit c3767e6

File tree

6 files changed

+31
-2
lines changed

6 files changed

+31
-2
lines changed

ChangeLog

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ What's New in Pylint 2.13.0?
66
============================
77
Release date: TBA
88

9-
* Pyreverse - add output in mermaidjs format
10-
119
..
1210
Put new features here and also in 'doc/whatsnew/2.13.rst'
1311

@@ -19,6 +17,17 @@ Release date: TBA
1917
* When run in parallel mode ``pylint`` now pickles the data passed to subprocesses with
2018
the ``dill`` package. The ``dill`` package has therefore been added as a dependency.
2119

20+
* An astroid issue where symlinks were not being taken into account
21+
was fixed
22+
23+
Closes #1470
24+
Closes #3499
25+
Closes #4302
26+
Closes #4798
27+
Closes #5081
28+
29+
* Pyreverse - add output in mermaidjs format
30+
2231
* ``used-before-assignment`` now considers that assignments in a try block
2332
may not have occurred when the except or finally blocks are executed.
2433

doc/whatsnew/2.13.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ Other Changes
4848

4949
.. _`emacs file locks`: https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Locks.html
5050

51+
* An astroid issue where symlinks were not being taken into account
52+
was fixed
53+
54+
Closes #1470
55+
Closes #3499
56+
Closes #4302
57+
Closes #4798
58+
Closes #5081
59+
5160
* Fixed extremely long processing of long lines with comma's.
5261

5362
Closes #5483
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../module/__init__.py
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../module/symlinked_module.py
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""Example taken from issue #1470"""
2+
3+
from symlinked_module import func
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""Example taken from issue #1470"""
2+
3+
4+
def func():
5+
"""Both module should be parsed without problem"""
6+
return 1

0 commit comments

Comments
 (0)