Skip to content

Commit c634ffd

Browse files
authored
Fix MyPy CI tests (microsoft#8518)
1 parent 6e260e7 commit c634ffd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/linters/lint.args.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ suite('Linting - Arguments', () => {
137137
});
138138
test('MyPy', async () => {
139139
const linter = new MyPy(outputChannel.object, serviceContainer);
140-
const expectedArgs = [fileUri.fsPath];
140+
const expectedPath = workspaceUri ? path.join(path.basename(path.dirname(fileUri.fsPath)), path.basename(fileUri.fsPath)) : path.basename(fileUri.fsPath);
141+
const expectedArgs = [expectedPath];
141142
await testLinter(linter, expectedArgs);
142143
});
143144
test('Pydocstyle', async () => {

0 commit comments

Comments
 (0)