mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-18 03:51:23 +08:00
Check full error message
This commit is contained in:
1 parent
6daf91880b
commit
5e1828b3f0
1 file changed
+8
-1
@@ -413,4 +413,11 @@ def test_unparenthesized_genexp(source, no_errors):
|
||||
]
|
||||
)
|
||||
def test_starred_expr(source, no_errors):
|
||||
assert bool(_get_error_list(source)) ^ no_errors
|
||||
assert (
|
||||
any(
|
||||
"starred assignment target must be in a list or tuple"
|
||||
in error.message
|
||||
for error in _get_error_list(source)
|
||||
)
|
||||
^ no_errors
|
||||
)
|
||||
Reference in new issue
Block a user