pypa / pypa/scripttest

debug mode fails if something is None

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
59
Forks
20
PR merge metrics
No merged PRs in 30d

Description

I'm trying to debug a pip test by passing debug=True to the script and getting the following output. It's not entirely clear what's going on because some of the stack trace is getting swallowed, but None is being passed to the string() function somewhere and this is failing, which sort of kills the debug mode functionality.

See for example https://travis-ci.org/kevinburke/pip/jobs/34864592#L229

Contributor guide

No contributing guide indexed for this repository

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

Start by reproducing the debug=True path described in the Travis CI log and trace where None reaches the string() call. Confirm the fix by ensuring debug mode no longer swallows the relevant stack trace when a value is None.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.