GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test_multiprocessing.test_empty_authkey triggers env changed failure · Issue #116439 · python/cpython

test_multiprocessing.test_empty_authkey triggers env changed failure #116439

New issue
Copy link
New issue
Copy link
Closed
Closed
test_multiprocessing.test_empty_authkey triggers env changed failure#116439
Copy link
Assignees
colesbury
Labels
testsTests in the Lib/test dirTests in the Lib/test dir

Description

@colesbury
colesbury
opened on Mar 6, 2024
Issue body actions

The test starts a thread but doesn't join it, which can lead to test failures with "ENV CHANGED"

cpython/Lib/test/_test_multiprocessing.py

Lines 3518 to 3521 in c62144a

with self.connection.Listener(authkey=key) as listener:
threading.Thread(target=run, args=(listener.address, key)).start()
with listener.accept() as d:
self.assertEqual(d.recv(), 1729)

See also #25845

From https://buildbot.python.org/all/#/builders/249/builds/7957/steps/5/logs/stdio:

...
test_empty_authkey (test.test_multiprocessing_fork.test_processes.WithProcessesTestListener.test_empty_authkey) ... ok
test_multiple_bind (test.test_multiprocessing_fork.test_processes.WithProcessesTestListener.test_multiple_bind) ... ok
Warning -- Dangling threads: {<Thread(Thread-13 (run), started 139968890533568)>}
...

Linked PRs

  • gh-116439: Ensure thread is joined in test_empty_authkey #116442
Reacted by Gregory P. Smith

Activity

  1. colesbury
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    on Mar 6, 2024
  2. colesbury
    self-assigned this
    on Mar 6, 2024
  3. colesbury
    added a commit that references this issue on Mar 6, 2024

    pythongh-116439: Ensure thread is joined in test_empty_authkey

    fa4a1af
  4. colesbury commented on Mar 6, 2024

    @colesbury
    colesbury
    on Mar 6, 2024
    ContributorAuthor
    More actions

    Already fixed in #116434

    Reacted by Gregory P. Smith
  5. colesbury
    closed this as completedon Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @colesbury
    colesbury

Labels

testsTests in the Lib/test dirTests in the Lib/test dir

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.