pytest-dev / pytest-dev/pytest

tests: revisit pdb/debugging tests

Open
#6,674 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug type: enhancement type: selftests
Dominant language
Python
Stars
14.5k
Forks
3.4k
Avg merge
2d 9h
Merged PRs (30d)
35

Description

  1. a lot of tests expect only "Pdb", but that could also be in an internal error (f36f9d269)
  2. the pexpect.spawn's send does not ensure the child is alive still, so you might get an internal error, send something and then compare "rest", missing the internal error
  3. there should be a expect_pdb_prompt helper probably
  4. a generic method to configure the pexpect.spawn class is useful in general (Popen could be used on Windows)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the pdb/debugging tests and their pexpect.spawn setup, then review the existing prompt and child-process assertions. The work is done when internal errors cannot be mistaken for successful Pdb output, prompt checks are centralized, and process configuration supports the stated platform needs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.