Skip to content

implict import a module named test #259

Open

Description

@abc19899

after I dive to py3 using futurize, I find that my module name "test.py" will automaitcally be imported. I found out it's because the below code:

from future import standard_library
standard_library.install_aliases()

which write:

try:
    import test
except ImportError:
    pass

as implict relative import is allowed in py2, it imports my "test.py" instead of the standard test module

Activity

  1. markshep commented on Sep 22, 2017

    @markshep

    I'm hitting this problem too. Is there no way to fix it?

  2. wvangeit commented on Aug 28, 2020

    @wvangeit

    Is anybody working on a fix for this? We just encountered this problem too.

  3. spaceone commented on Aug 4, 2023

    @spaceone

    Duplicate #268

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions