Skip to content

Commit bd90464

Browse files
authored
Merge pull request #2640 from NishantBansal2003/error_banner_fix
Removed error banner from tests (#2631)
2 parents 4ceac47 + d47e9f1 commit bd90464

File tree

331 files changed

+180
-840
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

331 files changed

+180
-840
lines changed

run_tests.py

+15-15
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def is_included(backend):
5656
"lpython --no-color --show-tokens {infile} -o {outfile}",
5757
filename,
5858
update_reference,
59-
extra_args)
59+
extra_args=extra_args)
6060

6161
if ast:
6262
run_test(
@@ -65,7 +65,7 @@ def is_included(backend):
6565
"lpython --show-ast --no-color {infile} -o {outfile}",
6666
filename,
6767
update_reference,
68-
extra_args)
68+
extra_args=extra_args)
6969

7070
if ast_new:
7171
run_test(
@@ -74,7 +74,7 @@ def is_included(backend):
7474
"lpython --show-ast --new-parser --no-color {infile} -o {outfile}",
7575
filename,
7676
update_reference,
77-
extra_args)
77+
extra_args=extra_args)
7878

7979
if asr:
8080
run_test(
@@ -83,7 +83,7 @@ def is_included(backend):
8383
"lpython --show-asr --no-color {infile} -o {outfile}",
8484
filename,
8585
update_reference,
86-
extra_args)
86+
extra_args=extra_args)
8787

8888
if asr_json:
8989
run_test(
@@ -92,7 +92,7 @@ def is_included(backend):
9292
"lpython --show-asr --json --no-color {infile} -o {outfile}",
9393
filename,
9494
update_reference,
95-
extra_args)
95+
extra_args=extra_args)
9696

9797
if pass_ is not None:
9898
cmd = "lpython "
@@ -103,7 +103,7 @@ def is_included(backend):
103103
cmd += "--pass=" + pass_ + \
104104
" --show-asr --no-color {infile} -o {outfile}"
105105
run_test(filename, "pass_{}".format(pass_), cmd,
106-
filename, update_reference, extra_args)
106+
filename, update_reference, extra_args=extra_args)
107107

108108
if no_llvm:
109109
log.info(f"{filename} * llvm SKIPPED as requested")
@@ -115,7 +115,7 @@ def is_included(backend):
115115
"lpython --no-color --show-llvm {infile} -o {outfile}",
116116
filename,
117117
update_reference,
118-
extra_args)
118+
extra_args=extra_args)
119119
if llvm_dbg:
120120
run_test(
121121
filename,
@@ -124,31 +124,31 @@ def is_included(backend):
124124
"{infile} -o {outfile}",
125125
filename,
126126
update_reference,
127-
extra_args)
127+
extra_args=extra_args)
128128

129129
if cpp:
130130
run_test(filename, "cpp", "lpython --no-color --show-cpp {infile}",
131-
filename, update_reference, extra_args)
131+
filename, update_reference, extra_args=extra_args)
132132

133133
if c:
134134
if disable_main:
135135
run_test(filename, "c", "lpython --no-color --disable-main --show-c {infile}",
136-
filename, update_reference, extra_args)
136+
filename, update_reference, extra_args=extra_args)
137137
else:
138138
run_test(filename, "c", "lpython --no-color --show-c {infile}",
139-
filename, update_reference, extra_args)
139+
filename, update_reference, extra_args=extra_args)
140140

141141
if python:
142142
run_test(filename, "python", "lpython --no-color --show-python {infile}",
143-
filename, update_reference, extra_args)
143+
filename, update_reference, extra_args=extra_args)
144144

145145
if wat:
146146
run_test(filename, "wat", "lpython --no-color --show-wat {infile}",
147-
filename, update_reference, extra_args)
147+
filename, update_reference, extra_args=extra_args)
148148

149149
if run:
150150
run_test(filename, "runtime", "lpython {infile}",
151-
filename, update_reference, extra_args)
151+
filename, update_reference, extra_args=extra_args)
152152

153153
if run_with_dbg:
154154
if skip_run_with_dbg:
@@ -157,7 +157,7 @@ def is_included(backend):
157157
run_test(
158158
filename, "run_dbg",
159159
"lpython {infile} -g --debug-with-line-column --no-color",
160-
filename, update_reference, extra_args)
160+
filename, update_reference, extra_args=extra_args)
161161

162162
if __name__ == "__main__":
163163
tester_main("LPython", single_test)

tests/reference/asr-arrays_01-a617b64.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_01-a617b64.stderr",
11-
"stderr_hash": "69f8656cd4ab2b5cc8b1555c5b089c764a36a817023697e5314a7815",
11+
"stderr_hash": "b8317c7306f747ceefa8557c06f2a0b4a8a4bd7ae805bb494fca6ef2",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_01-a617b64.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,3 @@ semantic error: Type mismatch in procedure call; the types must be compatible
66
|
77
9 | a : i8[4] = empty(4, dtype=int8)
88
| ^^^^^ type mismatch (passed argument type is list[i8] but required type is i8[4])
9-
10-
11-
Note: Please report unclear or confusing messages as bugs at
12-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_02-da94458.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_02-da94458.stderr",
11-
"stderr_hash": "15fc716bf5d58791fd20510131f51127e7e99d1e8fab7a8d01e3b008",
11+
"stderr_hash": "dc0e5be7cd6de7395421aedf1ce11977206f3e35bb7cba271aed8992",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_02-da94458.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: The truth value of an array with more than one element is ambigu
33
|
44
28 | assert r1.a == t1.a
55
| ^^^^^^^^^^^^
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_03-de2e952.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_03-de2e952.stderr",
11-
"stderr_hash": "42cba9a2472dd0b8fd0d081f97bfb17615c8efbe56fdb3f4ff709e48",
11+
"stderr_hash": "4c932f31bbb10c9ba8d8d75be226ba9c33553be3bcb367c8112e31af",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_03-de2e952.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
33
|
44
6 | x: i16[4] = empty([5], dtype=int16)
55
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[4]' and 'i16[5]')
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_04-880407c.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_04-880407c.stderr",
11-
"stderr_hash": "40354354f9ae2e3eae5163f41ff6ce0298b5005bf4d13fd3e89cf48b",
11+
"stderr_hash": "10ef155b0236096d5de8157e38b3989d99343b016a8153b68a36aa54",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_04-880407c.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
33
|
44
6 | x: i16[5] = empty([5], dtype=int32)
55
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5]' and 'i32[5]')
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_05-ec8fbd5.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_05-ec8fbd5.stderr",
11-
"stderr_hash": "14eef4151e9c559cdcc637a009a39a4a965049d22f5393af3e83c5e1",
11+
"stderr_hash": "4e5d42a186b8d82b484ec66ccc5a3b90da7e4be8a32bac26ea906198",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_05-ec8fbd5.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
33
|
44
6 | x: i16[5, 4] = empty([5, 3], dtype=int16)
55
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5,4]' and 'i16[5,3]')
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_06-fbb09a3.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_06-fbb09a3.stderr",
11-
"stderr_hash": "0da1a817c8625225561019e08f1e47247998ed20bf3ab53e01c1963a",
11+
"stderr_hash": "1fa3f5061a72f03c0678806c0460b9ec5caf01cbbd2f07a606f1057e",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_06-fbb09a3.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
33
|
44
6 | x: i16[5, 4] = empty([5, 4], dtype=int32)
55
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5,4]' and 'i32[5,4]')
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_07-de430fd.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_07-de430fd.stderr",
11-
"stderr_hash": "6774eef8f3ca19c2ac8347014012d6daa8fd8d5382a22b29fb843a9f",
11+
"stderr_hash": "7fadea44b4ad8f383e0cadbd27a53eb3ab75f0edef98d27639527723",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_07-de430fd.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
33
|
44
6 | x: f32[5, 4] = empty([5, 4], dtype=complex64)
55
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('f32[5,4]' and 'c32[5,4]')
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_08-ba317a3.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_08-ba317a3.stderr",
11-
"stderr_hash": "05ceaebc761f9c6981c8a418395b46ac7f0d7ee1f349b51b68accecb",
11+
"stderr_hash": "bedb87b219b7c49a18cced170e4ffcac780d242f70c3ae8bbfb27a26",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_08-ba317a3.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
33
|
44
9 | x: i64[p, q, r] = empty([q, p, r], dtype=int64)
55
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i64[100,120,200]' and 'i64[120,100,200]')
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_09-50ee586.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_09-50ee586.stderr",
11-
"stderr_hash": "2a118c1202a5c3336eda7159c9d999acff05b5702f95564147e38b48",
11+
"stderr_hash": "0169175ca66ace6110382408ed4506313e311d560e9b8c16bdd997b3",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_09-50ee586.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Only those local variables that can be reduced to compile-time c
33
|
44
9 | x: i64[p, q, r] = empty([q, p, r], dtype=int64)
55
| ^
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_10-bc82d75.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_10-bc82d75.stderr",
11-
"stderr_hash": "0072f417616b40366ab4718be0e354d3ce1d0e9a76a2699a11c3274b",
11+
"stderr_hash": "1c45f4b45b48ceb3de4567413bff847b67df2750fcc68d6a358df096",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_10-bc82d75.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Only those local variables that can be reduced to compile-time c
33
|
44
9 | x: i64[100, 120, 200] = empty([q, p, r], dtype=int64)
55
| ^
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_11-fc505b4.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_11-fc505b4.stderr",
11-
"stderr_hash": "bc288ede8eb7bad0ba460ec8fa86fd970a362bd2fd42b59ae8245f21",
11+
"stderr_hash": "ef5e89392b20ad345ba9bcf862ab71b19e56c85d9838db742be117a1",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_11-fc505b4.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
33
|
44
5 | x: i16[4] = empty([5], dtype=int16)
55
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[4]' and 'i16[5]')
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_12-63d6f25.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_12-63d6f25.stderr",
11-
"stderr_hash": "a278181ad1227b3371e16b43a19ae6bb9326f5be6a3abd1180fffbab",
11+
"stderr_hash": "b6fa626301868bd5cbbef6d914f5b4f38b1d896b951753122969e74a",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_12-63d6f25.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
33
|
44
5 | x: i16[5] = empty([5], dtype=int32)
55
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5]' and 'i32[5]')
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_13-b5fcc7e.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_13-b5fcc7e.stderr",
11-
"stderr_hash": "92e3dc9e94bf8aecba8229504351dc861f0a6dfdef8cb21f85fa4305",
11+
"stderr_hash": "6bde2f7fc14d5a461a58d694e44e19dd79ef5bee47c88b4022daf5d6",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_13-b5fcc7e.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
33
|
44
7 | x: i16[4] = empty(5, dtype=int16)
55
| ^ ^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[4]' and 'i16[5]')
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_14-78be00e.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_14-78be00e.stderr",
11-
"stderr_hash": "be4da7730affe7f477cb84d11a75b7087ee9dbd0c51ccfa592641e81",
11+
"stderr_hash": "267aea8e48708230a9b2bc61c37c849a0b75cb45294ca25ee11fe632",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_14-78be00e.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
33
|
44
7 | x: i16[4] = empty((5), dtype=int16)
55
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[4]' and 'i16[5]')
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-bindc_01-f761165.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-bindc_01-f761165.stderr",
11-
"stderr_hash": "5171127abfe429f4fd3b02095634e99e83408c53d1ae57568ee1cafc",
11+
"stderr_hash": "b2d416fa6afa00923a130cb76dbd580798a9ee0841e34980c531b050",
1212
"returncode": 2
1313
}

tests/reference/asr-bindc_01-f761165.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,3 @@ semantic error: Type mismatch in procedure call; the types must be compatible
66
|
77
4 | def cptr_arg(arg1: CPtr):
88
| ^^^^ type mismatch (passed argument type is i32 but required type is CPtr)
9-
10-
11-
Note: Please report unclear or confusing messages as bugs at
12-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-bindc_02-5092d8e.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-bindc_02-5092d8e.stderr",
11-
"stderr_hash": "daeb0d3e1c14acbdcd6e78566d1ebb34ef56ff4487c962a34fa7c65d",
11+
"stderr_hash": "315076027d80c91db75f4ec44ea5cf8d5fd37a499a367f627b6f6553",
1212
"returncode": 2
1313
}

tests/reference/asr-bindc_02-5092d8e.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,3 @@ semantic error: Type mismatch in procedure call; the types must be compatible
66
|
77
5 | cptr_member: CPtr
88
| ^^^^ type mismatch (passed argument type is i32 but required type is CPtr)
9-
10-
11-
Note: Please report unclear or confusing messages as bugs at
12-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-bindc_03-95dbba7.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-bindc_03-95dbba7.stderr",
11-
"stderr_hash": "945230d4a2ff6c48f1c4c4ec9825a13bd73ae9cca2b906edf9b4d99a",
11+
"stderr_hash": "371c3fc384c0e72448648d5a3734a373fe96ba258b261f0695ccb518",
1212
"returncode": 2
1313
}

tests/reference/asr-bindc_03-95dbba7.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Target type specified in c_p_pointer must have deferred shape.
33
|
44
6 | A: Pointer[i16[:]] = c_p_pointer(b, i16[n * k], array([k * n]))
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

0 commit comments

Comments
 (0)