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

test_pdb_collection_failure_is_shown() hangs in PyCharm 4.5 #889

Closed
omarkohl opened this issue Jul 26, 2015 · 5 comments
Closed

test_pdb_collection_failure_is_shown() hangs in PyCharm 4.5 #889

omarkohl opened this issue Jul 26, 2015 · 5 comments
Labels
status: needs information reporter needs to provide more information; can be closed after 2 or more weeks of inactivity

Comments

@omarkohl
Copy link
Contributor

I tried running the py.test tests in PyCharm and test_pdb_collection_failure_is_shown() from the test_pdb.py module simply hangs and stops execution.

PyCharm disables output capturing (probably because they want to capture it themselves).

It can be easily reproduced without PyCharm:

py.test -s testing/test_pdb.py

Then one can type 'c' (continue in pdb) - even though no output is shown regarding pdb - and the test run finishes.

Following is the default command executed by PyCharm to run the test:

python3 /opt/pycharm-community-4.5.2/helpers/pycharm/pytestrunner.py -p pytest_teamcity testing/test_pdb.py --capture=sys

To verify that the problem is as described TWO things need to be done:

  1. Remove the --capture=sys from the command (or replace with --capture=fd)
  2. Comment out line 25 in pytestrunner.py args.append("-s") if "-s" not in args else None

This issue was originally reported/discussed on the mailing list.

Other info (probably not relevant):

  • Issue found on master (commit ae28e4b)
  • OS: Ubuntu 15.04
  • Java version Oracle JRE 1.8.0_25
  • PyCharm 4.5.2
  • Python version 3.4.3
@Cephlin
Copy link

Cephlin commented Aug 25, 2017

Bump.

Has anyone else experienced this or fixed this?

It's hanging for me too and it's driving me nuts.

@RonnyPfannschmidt
Copy link
Member

im not aware of a core dev using pycharm - and as far as i can tell the pycharm integration breaks things there

@nicoddemus
Copy link
Member

Actually, I use PyCharm. 😁

But I recall someone fixing running testing/test_pdb.py with -s recently. Which pytest version does this happen?

@Cephlin
Copy link

Cephlin commented Aug 29, 2017

I'll give it a go and report back.

@nicoddemus nicoddemus added the status: needs information reporter needs to provide more information; can be closed after 2 or more weeks of inactivity label Aug 29, 2017
@nicoddemus
Copy link
Member

Closing for now; we will be happy to re-open this once we get more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs information reporter needs to provide more information; can be closed after 2 or more weeks of inactivity
Projects
None yet
Development

No branches or pull requests

4 participants