Revert changes to test/completion and test/static_analysis except for 2.6 comment removal

This commit is contained in:
Hugo
2018-01-07 10:33:24 +02:00
parent 3e8cd9f128
commit 7e449af4bd
32 changed files with 99 additions and 99 deletions

View File

@@ -6,7 +6,7 @@ Checking for ``list.append`` and all the other possible array modifications.
# -----------------
arr = []
for a in [1,2]:
arr.append(a)
arr.append(a);
arr.append # should not cause an exception
arr.append() # should not cause an exception
@@ -16,7 +16,7 @@ arr[10]
arr = [tuple()]
for a in [1,2]:
arr.append(a)
arr.append(a);
#? int() tuple()
arr[10]
@@ -112,9 +112,9 @@ iter(lst)[0]
# -----------------
# complex including +=
# -----------------
class C: pass
class D: pass
class E: pass
class C(): pass
class D(): pass
class E(): pass
lst = [1]
lst.append(1.0)
lst += [C]
@@ -207,7 +207,7 @@ blub()[0]
# -----------------
# returns, the same for classes
# -----------------
class C:
class C():
def blub(self, b):
if 1:
a = []
@@ -254,7 +254,7 @@ C().list_arr(1.0)[0]
# array recursions
# -----------------
a = {1.0}
a = set([1.0])
a.update(a)
a.update([1])