Skip to content

test_pdb_collection_failure_is_shown() hangs in PyCharm 4.5Β #889

@omarkohl

Description

@omarkohl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs informationreporter needs to provide more information; can be closed after 2 or more weeks of inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions