mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-30 16:14:41 +08:00
Fix all tests. Finally.
This commit is contained in:
@@ -56,7 +56,7 @@ result = {
|
||||
rv.update(dict.fromkeys((
|
||||
'qualif_nr', 'reasonComment_en', 'reasonComment_fr',
|
||||
'reasonComment_de', 'reasonComment_it'),
|
||||
#: E128
|
||||
#: E128:10
|
||||
'?'),
|
||||
"foo")
|
||||
|
||||
@@ -74,5 +74,5 @@ part = set_mimetype((
|
||||
'default')
|
||||
part = set_mimetype((
|
||||
a.get('mime_type', 'text')),
|
||||
#: E127:21
|
||||
#: E127:21
|
||||
'default')
|
||||
|
||||
@@ -267,16 +267,9 @@ if True:
|
||||
|
||||
def valid_example():
|
||||
return [node.copy(properties=dict(
|
||||
(key, val if val is not None else token.undefined)
|
||||
for key, val in node.items()
|
||||
))]
|
||||
|
||||
|
||||
def other_example():
|
||||
return [node.copy(properties=dict(
|
||||
(key, val if val is not None else token.undefined)
|
||||
for key, val in node.items()
|
||||
))]
|
||||
(key, val if val is not None else token.undefined)
|
||||
for key, val in node.items()
|
||||
))]
|
||||
|
||||
|
||||
foo([
|
||||
|
||||
@@ -77,14 +77,12 @@ if True:
|
||||
def example_issue254():
|
||||
#:
|
||||
return [node.copy(
|
||||
#: E121:12
|
||||
(
|
||||
#: E121:16 E126+1:24 E126+2:24
|
||||
(
|
||||
#: E121:16 E121+3:20
|
||||
replacement
|
||||
# First, look at all the node's current children.
|
||||
for child in node.children
|
||||
for replacement in replace(child)
|
||||
#: E123
|
||||
),
|
||||
dict(name=token.undefined)
|
||||
)]
|
||||
|
||||
Reference in New Issue
Block a user