Fix all tests. Finally.

This commit is contained in:
Dave Halter
2017-07-08 12:00:58 +02:00
parent 0846ad6337
commit 1e2abec7f2
4 changed files with 31 additions and 34 deletions

View File

@@ -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')

View File

@@ -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([

View File

@@ -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)
)]