Skip to content

Commit a23f8fa

Browse files
committed
formatted
1 parent cca205c commit a23f8fa

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/client/testing/testController/pytest/pytestExecutionAdapter.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
4242

4343
// create callback to handle data received on the named pipe
4444
const dataReceivedCallback = (data: ExecutionTestPayload) => {
45-
4645
if (runInstance && !runInstance.token.isCancellationRequested) {
4746
this.resultResolver?.resolveExecution(data, runInstance);
4847
} else {
@@ -104,7 +103,6 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
104103
debugLauncher?: ITestDebugLauncher,
105104
interpreter?: PythonEnvironment,
106105
): Promise<ExecutionTestPayload> {
107-
108106
const relativePathToPytest = 'python_files';
109107
const fullPluginPath = path.join(EXTENSION_ROOT_DIR, relativePathToPytest);
110108
const settings = this.configSettings.getSettings(uri);
@@ -184,7 +182,6 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
184182
let resultProc: ChildProcess | undefined;
185183

186184
runInstance?.token.onCancellationRequested(() => {
187-
188185
traceInfo(`Test run cancelled, killing pytest subprocess for workspace ${uri.fsPath}`);
189186
// if the resultProc exists just call kill on it which will handle resolving the ExecClose deferred, otherwise resolve the deferred here.
190187
if (resultProc) {
@@ -212,7 +209,6 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
212209
this.outputChannel?.append(out);
213210
});
214211
result?.proc?.on('exit', (code, signal) => {
215-
216212
this.outputChannel?.append(utils.MESSAGE_ON_TESTING_OUTPUT_MOVE);
217213
if (code !== 0 && testIds) {
218214
traceError(
@@ -222,7 +218,6 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
222218
});
223219

224220
result?.proc?.on('close', (code, signal) => {
225-
226221
traceVerbose('Test run finished, subprocess closed.');
227222
// if the child has testIds then this is a run request
228223
// if the child process exited with a non-zero exit code, then we need to send the error payload.

0 commit comments

Comments
 (0)