diff --git a/packages/pyright-internal/src/tests/config.test.ts b/packages/pyright-internal/src/tests/config.test.ts index 6e8a12d134..7124289bfb 100644 --- a/packages/pyright-internal/src/tests/config.test.ts +++ b/packages/pyright-internal/src/tests/config.test.ts @@ -329,7 +329,7 @@ test('BasicPyprojectTomlParsing', () => { test('basedPyprojectTomlParsing', () => { const { configOptions, analysisResult } = setupPyprojectToml('src/tests/samples/based_project_with_pyproject_toml'); - assert.strictEqual(configOptions.defaultPythonVersion!, pythonVersion3_9); + assert.strictEqual(configOptions.defaultPythonVersion!.toString(), pythonVersion3_9.toString()); assert.strictEqual(configOptions.diagnosticRuleSet.reportMissingImports, 'error'); assert.strictEqual(configOptions.diagnosticRuleSet.reportUnusedClass, 'warning'); assert(analysisResult === undefined);