mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix tests as warning message had changed
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
'%d%d' % ((5), (5)) #ok
|
||||
"%(name)d %(name)d" % {"name": 43} #ok
|
||||
"%(name)d" % {'a': 4, "name": 5} #ok
|
||||
'%% name %(name)c' % <warning descr="Key 'name' has no following argument">{'a': 4}</warning> #Key 'name' has no following argument
|
||||
'%% name %(name)c' % <warning descr="Key 'name' has no corresponding argument">{'a': 4}</warning> #Key 'name' has no following argument
|
||||
'%d %u %f %F %s %r' % (2, 3, 4.1, 4.0, "name", "str") #ok
|
||||
'%d %d %d' % (4, <warning descr="Unexpected type str">"a"</warning>, <warning descr="Unexpected type str">"b"</warning>) #Unexpected type
|
||||
'%f %f %f' % (4, 5, <warning descr="Unexpected type str">"test"</warning>) #Unexpected type
|
||||
|
||||
@@ -6,5 +6,5 @@ if my_dict['class']:
|
||||
|
||||
my_dict['tmp'] = 'classes %(css_class)s' % my_dict
|
||||
|
||||
my_dict['tmp'] = 'classes %(claz)s' % <warning descr="Key 'claz' has no following argument">my_dict</warning>
|
||||
my_dict['tmp'] = 'classes %(claz)s' % <warning descr="Key 'claz' has no corresponding argument">my_dict</warning>
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
print (<warning descr="Key 'fst' has no following argument">"first is {fst}"</warning>.format(**{1: "3"})<EOLError descr="')' expected"></EOLError>
|
||||
print (<warning descr="Key 'fst' has no corresponding argument">"first is {fst}"</warning>.format(**{1: "3"})<EOLError descr="')' expected"></EOLError>
|
||||
@@ -1 +1 @@
|
||||
print(<warning descr="Key 'foo' has no following argument">"{foo}"</warning>.format(**{}))
|
||||
print(<warning descr="Key 'foo' has no corresponding argument">"{foo}"</warning>.format(**{}))
|
||||
+1
-1
@@ -1 +1 @@
|
||||
<warning descr="Key 'third' has no following argument">'{first}, {second}, {third}'</warning>.format(**dict(first='a', second='b'))
|
||||
<warning descr="Key 'third' has no corresponding argument">'{first}, {second}, {third}'</warning>.format(**dict(first='a', second='b'))
|
||||
@@ -1,2 +1,2 @@
|
||||
<warning descr="Key 'name' has no following argument">"{name}"</warning>.format()
|
||||
<warning descr="Key 'foo' has no following argument">'{foo}'</warning>.format(boo=1)
|
||||
<warning descr="Key 'name' has no corresponding argument">"{name}"</warning>.format()
|
||||
<warning descr="Key 'foo' has no corresponding argument">'{foo}'</warning>.format(boo=1)
|
||||
Reference in New Issue
Block a user