Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix dist test by moving --no-pkgroot to runtests.py#9129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
auvipy merged 1 commit intoencode:masterfromterencehonles:fix-dist-test
Oct 5, 2023

Conversation

@terencehonles
Copy link
Contributor

Description

This change fixes the dist test by moving the --no-pkgroot option from pytest to the runtests script.

The current "filterwarnings" setting for pytest includes rest_framework, which causes an early import of the module. As a result the current --no-pkgroot behavior fails with an assertion error. Trying to remove the module from sys.modules will cause the warning filter to not apply, so this change moves this code before pytest parses the config and loads the "filterwarnings".

This change fixes the dist test by moving the --no-pkgroot option frompytest to the runtests script.The current "filterwarnings" setting for pytest includes rest_framework,which causes an early import of the module. As a result the current--no-pkgroot behavior fails with an assertion error. Trying to removethe module from sys.modules will cause the warning filter to not apply,so this change moves this code before pytest parses the config and loadsthe "filterwarnings".
@auvipyauvipy added this to the3.15 milestoneOct 5, 2023
@auvipyauvipy merged commit4296189 intoencode:masterOct 5, 2023
@auvipy
Copy link
Collaborator

thanks!

terencehonles reacted with thumbs up emoji

@terencehonlesterencehonles deleted the fix-dist-test branchOctober 5, 2023 08:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@auvipyauvipyauvipy approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

3.15

Development

Successfully merging this pull request may close these issues.

2 participants

@terencehonles@auvipy

[8]ページ先頭

©2009-2025 Movatter.jp