File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
lldb/unittests/ScriptInterpreter/Python Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -788,6 +788,8 @@ main = foo
788
788
testing::ContainsRegex (" line 7, in baz" ),
789
789
testing::ContainsRegex (" ZeroDivisionError" )))));
790
790
791
+ #if !((defined(_WIN32) || defined(_WIN64)) && (defined(__aarch64__) || defined(_M_ARM64)))
792
+
791
793
static const char script2[] = R"(
792
794
class MyError(Exception):
793
795
def __str__(self):
@@ -800,10 +802,15 @@ def main():
800
802
801
803
PythonScript lol (script2);
802
804
803
- EXPECT_THAT_EXPECTED (lol (),
804
- llvm::Failed<PythonException>(testing::Property (
805
- &PythonException::ReadBacktrace,
806
- testing::ContainsRegex (" unprintable MyError" ))));
805
+ EXPECT_THAT_EXPECTED (
806
+ lol (),
807
+ llvm::Failed<PythonException>(testing::Property (
808
+ &PythonException::ReadBacktrace,
809
+ testing::AnyOf (
810
+ testing::ContainsRegex (" MyError: <exception str\\ (\\ ) failed>" ),
811
+ testing::ContainsRegex (" unprintable MyError" )))));
812
+
813
+ #endif
807
814
}
808
815
809
816
TEST_F (PythonDataObjectsTest, TestRun) {
You canβt perform that action at this time.
0 commit comments