Skip to content

Example in module docstring of epylint fails since 2.5.x #3628

@twmr

Description

@twmr
Contributor

Steps to reproduce

  1. Follow https://github.com/PyCQA/pylint/blob/369d952c7e5df010932cf89e528b2f6e9ff08dd6/pylint/epylint.py#L36
  2. Run pylint a/c/y.py

Current behavior

$ pylint a/c/y.py                                                                            
************* Module y
a/c/y.py:1:0: C0114: Missing module docstring (missing-module-docstring)
a/c/y.py:1:0: E0401: Unable to import 'a.b' (import-error)
a/c/y.py:1:0: W0611: Unused x imported from a.b (unused-import)

Expected behavior

$ pylint a/c/y.py                                                                            
************* Module y
a/c/y.py:1:0: C0114: Missing module docstring (missing-module-docstring)
a/c/y.py:1:0: W0611: Unused x imported from a.b (unused-import)

pylint --version output

$ pylint --version                                                                           
pylint 2.6.0-dev1
astroid 2.5.0
Python 3.8.2 | packaged by conda-forge | (default, Apr 24 2020, 08:20:52) 
[GCC 7.3.0]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @twmr@PCManticore@Pierre-Sassoulas

        Issue actions

          Example in module docstring of epylint fails since 2.5.x · Issue #3628 · pylint-dev/pylint