Skip to content

Commit 7a50320

Browse files
bhrutledgewesm
authored andcommitted
Don't add cwd arg when running all tests (microsoft/vscode-python#17978)
1 parent 2642670 commit 7a50320

File tree

2 files changed

+3
-1
lines changed
  • extensions/positron-python

2 files changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix for `pytest` run all tests when using `pytest.ini` and `cwd`.
2+
(thanks [Brian Rutledge](https://github.com/bhrutledge))

extensions/positron-python/src/client/testing/testController/pytest/runner.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class PytestRunner implements ITestsRunner {
9797
if (!rawData) {
9898
throw new Error(`Trying to run unknown node: ${testNode.id}`);
9999
}
100-
if (testNode.id !== options.workspaceFolder.fsPath) {
100+
if (testNode.id !== options.cwd) {
101101
testArgs.push(rawData.rawId);
102102
}
103103

0 commit comments

Comments
 (0)