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

TST: always set a (long) timeout for subprocess and always use our wrapper#27726

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
greglucas merged 3 commits intomatplotlib:mainfromtacaswell:tst/finite_tests
Feb 14, 2024

Conversation

tacaswell
Copy link
Member

If you are using this and really need unbounded timeouts, explicitly passtimeout=None

This is an attempt to avoid azure from hanging and then timing out.

If you are using this and really need unbounded timeouts, explicitlypass `timeout=None`
@tacaswelltacaswell added this to thev3.9.0 milestoneJan 31, 2024
@tacaswelltacaswell changed the titleTST: always set a (long) timeout for subprocessTST: always set a (long) timeout for subprocess and always use our wrapperJan 31, 2024
@tacaswell
Copy link
MemberAuthor

The second commit finally cleans up all of thesubprocess.run,subprocess.call,subprocess.check_output andsubprocess.check_call to be run through our helper.

@tacaswelltacaswellforce-pushed thetst/finite_tests branch 2 times, most recently from1bfdf4d toec90d87CompareJanuary 31, 2024 22:09
Copy link
Member

@QuLogicQuLogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Unfortunately, whilesubprocess_run_helper defaults tocheck=True,subprocess_run_for_testing defaults tocheck=False.

@@ -50,7 +50,7 @@ def setup():
set_reproducibility_for_testing()


def subprocess_run_for_testing(command, env=None, timeout=None, stdout=None,
def subprocess_run_for_testing(command, env=None, timeout=60, stdout=None,
stderr=None, check=False, text=True,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
stderr=None,check=False,text=True,
stderr=None,check=True,text=True,

Since this is used for testing it seems like we should setcheck=True by default. It looks like you currently set this in many of the calls. Are there even more tests without setting check?

@greglucasgreglucas merged commit27c3dc9 intomatplotlib:mainFeb 14, 2024
@tacaswelltacaswell deleted the tst/finite_tests branchFebruary 14, 2024 15:30
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

@greglucasgreglucasgreglucas approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.9.0
Development

Successfully merging this pull request may close these issues.

3 participants
@tacaswell@QuLogic@greglucas

[8]ページ先頭

©2009-2025 Movatter.jp