Skip to content

Commit c866ca8

Browse files
committed
fixed old tests
1 parent e5b7b5c commit c866ca8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/q/tests/evaluatePy.quke

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ feature removeExtraIndents
7373
" print(2)\n";
7474

7575
.qu.compare[.test.evaluatePy["serialized"; x]`errorMsg;
76-
`$"('unindent does not match any outer indentation level', ('<unknown>', 3, 7, ' else:\\n', 3, -1))"]
76+
"('unindent does not match any outer indentation level', ('<unknown>', 3, 7, ' else:\\n', 3, -1))"]
7777

7878

7979
feature evaluatePy 1
@@ -83,7 +83,7 @@ feature evaluatePy 1
8383
.test.evaluatePy: {[isString; code]
8484
0i (.test.src; isString; code; "first"; 10000)
8585
};
86-
.test.wrap: {`error`errorMsg`data!(0b; `; x)}
86+
.test.wrap: {`error`errorMsg`data!(0b; "None"; x)}
8787

8888
should run python code
8989
expect an empty input to return "None"
@@ -136,7 +136,7 @@ feature evaluatePy 1
136136
result;
137137
(!) . flip (
138138
(`error; 1b);
139-
(`errorMsg; `$"('invalid syntax', ('<unknown>', 1, 5, '1+++\\n', 1, 5))");
139+
(`errorMsg; "('invalid syntax', ('<unknown>', 1, 5, '1+++\\n', 1, 5))");
140140
(`data; ::);
141141
(`stacktrace; " File \"<unknown>\", line 1\n 1+++\n ^\nSyntaxError: invalid syntax"))]
142142

@@ -191,7 +191,7 @@ feature evaluatePy 1
191191
result;
192192
(!) . flip (
193193
(`error; 1b);
194-
(`errorMsg; `$"(\"unsupported operand type(s) for +: 'int' and 'str'\",)");
194+
(`errorMsg; "(\"unsupported operand type(s) for +: 'int' and 'str'\",)");
195195
(`data; ::);
196196
(`stacktrace; "Traceback (most recent call last):\n File \"<string>\", line 1, in <module>\n File \"<string>\", line 2, in foo\n File \"<string>\", line 5, in bar\nTypeError: unsupported operand type(s) for +: 'int' and 'str'"))]
197197

@@ -203,7 +203,7 @@ feature evaluatePy 1
203203
result;
204204
(!) . flip (
205205
(`error; 1b);
206-
(`errorMsg; `$"('invalid syntax', ('<unknown>', 1, 3, '1 2 + 3 4\\n', 1, 4))");
206+
(`errorMsg; "('invalid syntax', ('<unknown>', 1, 3, '1 2 + 3 4\\n', 1, 4))");
207207
(`data; ::);
208208
(`stacktrace; " File \"<unknown>\", line 1\n 1 2 + 3 4\n ^\nSyntaxError: invalid syntax"))]
209209

@@ -215,7 +215,7 @@ feature evaluatePy 1
215215
result;
216216
(!) . flip (
217217
(`error; 1b);
218-
(`errorMsg; `$"(\"unsupported operand type(s) for +: 'int' and 'str'\",)");
218+
(`errorMsg; "(\"unsupported operand type(s) for +: 'int' and 'str'\",)");
219219
(`data; ::);
220220
(`stacktrace; "Traceback (most recent call last):\n File \"<string>\", line 1, in <module>\nTypeError: unsupported operand type(s) for +: 'int' and 'str'"))]
221221

@@ -227,7 +227,7 @@ feature evaluatePy 1
227227
result;
228228
(!) . flip (
229229
(`error; 1b);
230-
(`errorMsg; `$"(\"unmatched ')'\", ('<unknown>', 1, 2, '2)', 1, 2))");
230+
(`errorMsg; "(\"unmatched ')'\", ('<unknown>', 1, 2, '2)', 1, 2))");
231231
(`data; ::);
232232
(`stacktrace; " File \"<unknown>\", line 1\n 2)\n ^\nSyntaxError: unmatched ')'"))]
233233

@@ -625,7 +625,7 @@ feature python toStructuredText
625625
should return errors in structured text
626626
expect error dictionary to contain keys in the form of `data`error`errorMsg`stacktrace
627627
a: .test.evaluatePy["structuredText"; "1 + '2'"];
628-
.qu.compare[key a; `data`error`errorMsg`stacktrace]
628+
.qu.compare[key a; `error`errorMsg`data`stacktrace]
629629
expect error dictionary to contain null for data
630630
.qu.compare[.test.evaluatePy["structuredText"; "1 + '2'"]`data; "null"]
631631
expect error dictionary to contain a 1b for error

0 commit comments

Comments
 (0)