Skip to content

venv: Don't produce unbound variable warning on deactivate #82066

Closed

Description

@danabr
mannequin
BPO 37885
Nosy @Yhg1s, @danabr
PRs
  • bpo-37885: venv: Don't produce unbound variable warning on deactivate #15330
  • [3.8] bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15330) #15973
  • [3.7] bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15330) #15974
  • 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 = <Date 2019-09-11.15:57:27.125>
    created_at = <Date 2019-08-19.08:50:09.202>
    labels = ['type-feature', 'library']
    title = "venv: Don't produce unbound variable warning on deactivate"
    updated_at = <Date 2019-09-11.15:57:27.124>
    user = 'https://github.com/danabr'

    bugs.python.org fields:

    activity = <Date 2019-09-11.15:57:27.124>
    actor = 'twouters'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-09-11.15:57:27.125>
    closer = 'twouters'
    components = ['Library (Lib)']
    creation = <Date 2019-08-19.08:50:09.202>
    creator = 'danabr'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37885
    keywords = ['patch']
    message_count = 5.0
    messages = ['349944', '351918', '351955', '351957', '351958']
    nosy_count = 2.0
    nosy_names = ['twouters', 'danabr']
    pr_nums = ['15330', '15973', '15974']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue37885'
    versions = []

    Activity

    1. danabr commented on Aug 19, 2019

      danabrmannequin
      MannequinAuthor

      Running deactivate from a bash shell configured to treat undefined variables as errors (set -u) produces a warning:

      $ python3 -m venv test
      $ source test/bin/activate
      (test) $ deactivate
      -bash: $1: unbound variable
      
    2. added
      stdlib
      type-feature
      on Aug 19, 2019
    3. Yhg1s commented on Sep 11, 2019

      @Yhg1s
      Member

      New changeset 5209e58 by T. Wouters (Daniel Abrahamsson) in branch 'master':
      bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15330)
      5209e58

    4. Yhg1s commented on Sep 11, 2019

      @Yhg1s
      Member

      New changeset 63eefc3 by T. Wouters (Miss Islington (bot)) in branch '3.8':
      bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15973)
      63eefc3

    5. Yhg1s commented on Sep 11, 2019

      @Yhg1s
      Member

      New changeset d126fbd by T. Wouters (Miss Islington (bot)) in branch '3.7':
      bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15974)
      d126fbd

    6. Yhg1s commented on Sep 11, 2019

      @Yhg1s
      Member

      Thanks, fix merged.

    7. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibtype-feature

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions