Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py.test hangs after update from 2.5 to 2.6.2 #592

Closed
pytestbot opened this issue Sep 16, 2014 · 4 comments
Closed

py.test hangs after update from 2.5 to 2.6.2 #592

pytestbot opened this issue Sep 16, 2014 · 4 comments
Labels
type: bug problem that needs to be addressed

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Thomas Güttler (BitBucket: thomas-guettler, GitHub: thomas-guettler)


After updating from 2.5.2 to 2.6.2 py.test hangs in os.system().

The very strange thing: If I use the "-s" option for py.test, the tests passes and does not hang.

Before I waste hours if debugging I want to ask here if you have seen something like this before.


@pytestbot
Copy link
Contributor Author

Original comment by Thomas Güttler (BitBucket: thomas-guettler, GitHub: thomas-guettler):


We found a work around: we change

#!python

os.system(cmd)

to

#!python

subprocess.call(cmd, shell=True)

and it works.

But it would be nice to find the root of the problem.

@pytestbot
Copy link
Contributor Author

Original comment by Jurko Gospodnetić (BitBucket: jurko, GitHub: jurko):


Any minimalistic use-case reproducing the problem?

Best regards,
Jurko Gospodnetić

@pytestbot
Copy link
Contributor Author

Original comment by Thomas Güttler (BitBucket: thomas-guettler, GitHub: thomas-guettler):


I am sorry, I can't get find a minimal use-case.

I can't reveal the test data. The command is something like this:

#!python

os.system('''anytopnm  somefile.png | pnmtops -width 8.27 -height 11.7 2>/dev/null > 'output.ps' ''')

But its reproduceable for me. Switching to subprocess.call(cmd, shell=True), downgradding to py.test 2.5 or using "-s" solves the problem.

@pytestbot pytestbot added the type: bug problem that needs to be addressed label Jun 15, 2015
@RonnyPfannschmidt
Copy link
Member

Closing as result of using a bad api subprocess should be used in all cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug problem that needs to be addressed
Projects
None yet
Development

No branches or pull requests

2 participants