Skip to content

Commit 2a76643

Browse files
authored
Fix pyright tests to match expected pyright output after pyright 1.1.380 (#1381)
1 parent 160f5d8 commit 2a76643

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/test_pyright.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ def test_pyright_baseline():
5656
(
5757
"error",
5858
'Cannot assign to attribute "a" for class '
59-
'"Frozen"\n\xa0\xa0"Frozen" is frozen\n\xa0\xa0\xa0\xa0'
60-
'Attribute "__set__" is unknown',
59+
'"Frozen"\n\xa0\xa0Attribute "a" is read-only',
6160
),
6261
(
6362
"information",
@@ -66,8 +65,7 @@ def test_pyright_baseline():
6665
(
6766
"error",
6867
'Cannot assign to attribute "a" for class '
69-
'"FrozenDefine"\n\xa0\xa0"FrozenDefine" is frozen\n\xa0\xa0\xa0\xa0'
70-
'Attribute "__set__" is unknown',
68+
'"FrozenDefine"\n\xa0\xa0Attribute "a" is read-only',
7169
),
7270
(
7371
"information",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ commands =
113113

114114
[testenv:pyright]
115115
extras = tests
116-
deps = pyright<1.1.380
116+
deps = pyright>=1.1.380
117117
commands = pytest tests/test_pyright.py -vv
118118

119119

0 commit comments

Comments
 (0)