We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58cd8e2 commit 46159d2Copy full SHA for 46159d2
1 file changed
plugins/python/regress/testhelpers.c
@@ -268,7 +268,15 @@ verify_log_lines(const char *reference_path)
268
// Convert ": REJECT" to ": 0" + rest of line
269
memcpy(cp, ": 0", 3);
270
memmove(cp + 3, cp + 8, strlen(cp + 8) + 1);
271
+ } else {
272
+ // Python 3.12 may use <RC.REJECT: 0> instead of 0
273
+ cp = strstr(line_data, "<RC.REJECT: 0>");
274
+ if (cp != NULL) {
275
+ *cp = '0';
276
+ memmove(cp + 1, cp + 14, strlen(cp + 14) + 1);
277
+ }
278
}
279
+
280
281
282
VERIFY_TRUE(strlcat(stored_str, line_data, sizeof(stored_str)) < sizeof(stored_str)); // we have enough space in buffer
0 commit comments