Skip to content
Merged
2 changes: 1 addition & 1 deletion src/client/linters/pylint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Pylint extends BaseLinter {
];
const messages = await this.run(minArgs.concat(args), document, cancellation, REGEX);
messages.forEach(msg => {
msg.severity = this.parseMessagesSeverity(msg.type, this.pythonSettings.linting.pylintCategorySeverity);
msg.severity = this.parseMessagesSeverity(msg.type, settings.linting.pylintCategorySeverity);
});

return messages;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ suite('Application Diagnostics - ApplicationDiagnostics', () => {
const oldValueOfVSC_PYTHON_CI_TEST = process.env.VSC_PYTHON_CI_TEST;

setup(() => {
process.env.VSC_PYTHON_UNIT_TEST = undefined;
process.env.VSC_PYTHON_CI_TEST = undefined;
delete process.env.VSC_PYTHON_UNIT_TEST;
delete process.env.VSC_PYTHON_CI_TEST;
serviceContainer = typemoq.Mock.ofType<IServiceContainer>();
envHealthCheck = typemoq.Mock.ofType<IDiagnosticsService>();
envHealthCheck.setup(service => service.runInBackground).returns(() => true);
Expand Down
Loading