Skip to content

Commit 12e1140

Browse files
DinoVmeta-codesync[bot]
authored andcommitted
Relax check for SystemError
Summary: In 3.15 this error message is colored and includes the ANSI escape codes for the colorization so the in check doesn't match. Just look for `SystemError` Reviewed By: yoney Differential Revision: D85976047 fbshipit-source-id: 7c7643b7c4cf00ec0fca47991a0d677d591f6338
1 parent c2c1121 commit 12e1140

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • cinderx/PythonLib/test_cinderx/test_cpython_overrides

cinderx/PythonLib/test_cinderx/test_cpython_overrides/test_capi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_getitem_with_error(self) -> None:
2727
)
2828
rc, out, err = assert_python_failure("-c", code)
2929
err = decode_stderr(err)
30-
if "SystemError: " not in err:
30+
if "SystemError" not in err:
3131
self.assertRegex(
3232
err,
3333
r"Fatal Python error: _Py_CheckSlotResult: "

0 commit comments

Comments
 (0)