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 — Fix test_importlib.test_side_effect_import() (GH-104840) · miss-islington/cpython@b407380

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Lib/test/test_importlib
    • test_threaded_import.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Lib/test/test_importlib/test_threaded_import.py‎

Copy file name to clipboardExpand all lines: Lib/test/test_importlib/test_threaded_import.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ def target():
244244
self.addCleanup(forget, TESTFN)
245245
self.addCleanup(rmtree, '__pycache__')
246246
importlib.invalidate_caches()
247-
__import__(TESTFN)
247+
with threading_helper.wait_threads_exit():
248+
__import__(TESTFN)
248249
del sys.modules[TESTFN]
249250

250251
def test_concurrent_futures_circular_import(self):

0 commit comments

Comments
0 (0)
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.