Skip to content

Commit 451fc2e

Browse files
committed
Undo conversion for queries that import LegacyPointsTo
1 parent 5497f2c commit 451fc2e

143 files changed

Lines changed: 287 additions & 358 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
query: Classes/InconsistentMRO.ql
2-
postprocess: utils/test/InlineExpectationsTestQuery.ql
1+
Classes/InconsistentMRO.ql

python/ql/test/2/query-tests/Classes/inconsistent-mro/inconsistent_mro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class X(object):
66
class Y(X):
77
pass
88

9-
class Z(X, Y): # $ Alert
9+
class Z(X, Y):
1010
pass
1111

1212
class O:
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
query: Classes/MaybeUndefinedClassAttribute.ql
2-
postprocess: utils/test/InlineExpectationsTestQuery.ql
1+
Classes/MaybeUndefinedClassAttribute.ql
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
query: Classes/UndefinedClassAttribute.ql
2-
postprocess: utils/test/InlineExpectationsTestQuery.ql
1+
Classes/UndefinedClassAttribute.ql
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
query: Exceptions/IllegalExceptionHandlerType.ql
2-
postprocess: utils/test/InlineExpectationsTestQuery.ql
1+
Exceptions/IllegalExceptionHandlerType.ql
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
query: Exceptions/IllegalRaise.ql
2-
postprocess: utils/test/InlineExpectationsTestQuery.ql
1+
Exceptions/IllegalRaise.ql

python/ql/test/2/query-tests/Exceptions/general/exceptions_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ def raise_tuple(cond):
1414
raise (Exception, "bananas", 17)
1515
else:
1616
#This is an error
17-
raise (17, "bananas", Exception) # $ Alert[py/illegal-raise]
17+
raise (17, "bananas", Exception)
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
query: Expressions/TruncatedDivision.ql
2-
postprocess: utils/test/InlineExpectationsTestQuery.ql
1+
Expressions/TruncatedDivision.ql

python/ql/test/2/query-tests/Expressions/TruncatedDivision_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ def halve(x):
6262
# This case is bad, and is a minimal obvious case that should be bad. It
6363
# SHOULD be found by the query.
6464

65-
print(3 / 2) # $ Alert[py/truncated-division]
65+
print(3 / 2)
6666

6767

6868

6969
# This case is bad. It uses indirect returns of integers through function calls
7070
# to produce the problem. I
7171

72-
print(return_three() / return_two()) # $ Alert[py/truncated-division]
72+
print(return_three() / return_two())
7373

7474

7575

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
query: Statements/IterableStringOrSequence.ql
2-
postprocess: utils/test/InlineExpectationsTestQuery.ql
1+
Statements/IterableStringOrSequence.ql

0 commit comments

Comments
 (0)