Skip to content

Commit c1dd148

Browse files
test: resolve temporary fixture paths on macOS
1 parent 498719d commit c1dd148

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
@@ -275,7 +275,8 @@ version = "16.05"`,
275275
}
276276

277277
function testMissingProjectVersion(): void {
278-
const projectRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'scip-missing-version-'));
278+
// macOS temporary directories can be symlinked; match the analyzer's resolved file paths.
279+
const projectRoot = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'scip-missing-version-')));
279280
try {
280281
fs.writeFileSync(path.join(projectRoot, 'main.py'), 'value = 1\n');
281282
fs.writeFileSync(

0 commit comments

Comments
 (0)