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 pylint-dev#1470
  • Loading branch information
Pierre-Sassoulas committed Jan 2, 2022
1 parent 3028f99 commit 412fef8
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,8 +6,6 @@ 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'

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

* 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 @@ -48,6 +48,15 @@ Other Changes

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

* 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 412fef8

Please sign in to comment.