sys.path in tests contains system directories

Open
#44,665 23 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start by reviewing the historical patches, especially python-2.7-issue1674555.v2.patch, and inspect the test and build setup that constructs sys.path. Reproduce the issue in the supported test environments. Done means the test sys.path no longer contains unintended system directories and the relevant test suite passes.

Written by the indexing model from the issue text.

Description

build pending tests type-bug
BPO 1674555
Nosy @loewis, @doko42, @ncoghlan, @orsenthil, @pitrou, @devdanzin, @carljm, @merwok, @bitdancer, @ericsnowcurrently, @vadmium, @serhiy-storchaka
Files
  • make_test_S.patch
  • python-2.7-issue1674555.patch
  • python-3.2-issue1674555.patch
  • python-3.3-issue1674555.patch
  • python-3.4-issue1674555.patch
  • python-2.7-issue1674555.v2.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2007-03-06.01:37:07.000>
    labels = ['type-bug', 'tests', 'build']
    title = 'sys.path in tests contains system directories'
    updated_at = <Date 2020-01-10.20:53:49.123>
    user = 'https://bugs.python.org/nyb'
    

    bugs.python.org fields:

    activity = <Date 2020-01-10.20:53:49.123>
    actor = 'brett.cannon'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Build', 'Tests']
    creation = <Date 2007-03-06.01:37:07.000>
    creator = 'nyb'
    dependencies = []
    files = ['20207', '28504', '28505', '28506', '28507', '42868']
    hgrepos = []
    issue_num = 1674555
    keywords = ['patch']
    message_count = 19.0
    messages = ['31436', '84675', '107216', '124889', '124972', '124993', '125202', '125209', '125215', '125220', '125221', '125224', '127337', '132212', '136552', '179125', '221992', '222012', '265666']
    nosy_count = 16.0
    nosy_names = ['loewis', 'doko', 'ncoghlan', 'orsenthil', 'pitrou', 'nyb', 'ajaksu2', 'dugan', 'carljm', 'eric.araujo', 'Arfrever', 'r.david.murray', 'eli.bendersky', 'eric.snow', 'martin.panter', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1674555'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    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.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.