Skip to content

Commit b716462

Browse files
test: resolve temporary fixture paths on macOS
1 parent 532da35 commit b716462

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/pyright-scip/test/test-main.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ version = "16.05"`,
310310
}
311311

312312
function testExternalDocumentation(): void {
313-
const projectRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'scip-external-docs-'));
313+
// macOS temporary directories can be symlinked; match the analyzer's resolved file paths.
314+
const projectRoot = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'scip-external-docs-')));
314315
try {
315316
fs.writeFileSync(path.join(projectRoot, 'requests.py'), 'value = 1\n');
316317
for (const imports of [

0 commit comments

Comments
 (0)