From 6b83eedb65853a6379f6066f5fcba56814dbe18d Mon Sep 17 00:00:00 2001 From: detachhead Date: Wed, 4 Sep 2024 20:38:44 +1000 Subject: [PATCH] update error message in `AbstractContextManager` subscript test --- packages/pyright-internal/src/tests/typeEvaluatorBased.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pyright-internal/src/tests/typeEvaluatorBased.test.ts b/packages/pyright-internal/src/tests/typeEvaluatorBased.test.ts index 198bc6972..6070fba6f 100644 --- a/packages/pyright-internal/src/tests/typeEvaluatorBased.test.ts +++ b/packages/pyright-internal/src/tests/typeEvaluatorBased.test.ts @@ -108,7 +108,7 @@ test('subscript context manager types on 3.8', () => { configOptions.defaultPythonVersion = pythonVersion3_8; const analysisResults = typeAnalyzeSampleFiles(['subscript_check.py'], configOptions); const message = - 'Subscript for class "AbstractContextManager" will generate runtime exception; enclose type annotation in quotes'; + 'Subscript for class "AbstractContextManager" will generate runtime exception; enclose type expression in quotes'; validateResultsButBased(analysisResults, { errors: [ { code: DiagnosticRule.reportIndexIssue, line: 7, message },