Skip to content

Avoid using py.std to import fnmatch.#99

Merged
RonnyPfannschmidt merged 1 commit intopytest-dev:masterfrom
pelme:fnmatch-import
Dec 20, 2016
Merged

Avoid using py.std to import fnmatch.#99
RonnyPfannschmidt merged 1 commit intopytest-dev:masterfrom
pelme:fnmatch-import

Conversation

@pelme
Copy link
Member

@pelme pelme commented Dec 17, 2016

fnmatch is used from the pytest ast hook which may trigger an import
from the import hook. This leads to endless recursion. Avoiding py.std
avoids the problem.

See pytest-dev/pytest#2121 for more
information.

fnmatch is used from the pytest ast hook which may trigger an import
from the import hook. This leads to endless recursion. Avoiding py.std
avoids the problem.

See pytest-dev/pytest#2121 for more
information.
@RonnyPfannschmidt
Copy link
Member

this will add early init cost

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants