Skip to content

Commit

Permalink
Fix pyright tests to match expected pyright output after pyright 1.1.…
Browse files Browse the repository at this point in the history
…380 (#1381)
  • Loading branch information
filbranden authored Dec 9, 2024
1 parent 160f5d8 commit 2a76643
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions tests/test_pyright.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ def test_pyright_baseline():
(
"error",
'Cannot assign to attribute "a" for class '
'"Frozen"\n\xa0\xa0"Frozen" is frozen\n\xa0\xa0\xa0\xa0'
'Attribute "__set__" is unknown',
'"Frozen"\n\xa0\xa0Attribute "a" is read-only',
),
(
"information",
Expand All @@ -66,8 +65,7 @@ def test_pyright_baseline():
(
"error",
'Cannot assign to attribute "a" for class '
'"FrozenDefine"\n\xa0\xa0"FrozenDefine" is frozen\n\xa0\xa0\xa0\xa0'
'Attribute "__set__" is unknown',
'"FrozenDefine"\n\xa0\xa0Attribute "a" is read-only',
),
(
"information",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ commands =

[testenv:pyright]
extras = tests
deps = pyright<1.1.380
deps = pyright>=1.1.380
commands = pytest tests/test_pyright.py -vv


Expand Down

0 comments on commit 2a76643

Please sign in to comment.