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 overwriting of cwd in test discovery path list (#6713) · munro/vscode-python@cac8024

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • news/2 Fixes
    • 6417.md
  • pythonFiles/testing_tools
    • run_adapter.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎news/2 Fixes/6417.md‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix overwriting of cwd in the path list when discovering tests.
Collapse file

‎pythonFiles/testing_tools/run_adapter.py‎

Copy file name to clipboardExpand all lines: pythonFiles/testing_tools/run_adapter.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
# Replace the "." entry.
55
import os.path
66
import sys
7-
sys.path[0] = os.path.dirname(
8-
os.path.dirname(
9-
os.path.abspath(__file__)))
7+
8+
sys.path.insert(1,
9+
os.path.dirname(
10+
os.path.dirname(
11+
os.path.abspath(__file__))))
1012

1113
from testing_tools.adapter.__main__ import parse_args, main
1214

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.