summaryrefslogtreecommitdiff
path: root/test/DebugProtoTest.thrift
diff options
context:
space:
mode:
authorNeil Williams <neil@reddit.com>2021-02-16 15:12:15 -0800
committerYuxuan 'fishy' Wang <fishywang@gmail.com>2021-02-16 16:31:00 -0800
commit055fe67ec1856d25f7ad3b98b5cd172fdf8e2c70 (patch)
tree062bf11a4e4dff23d87121e68022eb6e393699f7 /test/DebugProtoTest.thrift
parent526a1acf3b870d3b292423e19b9bb9bb0d18c0c3 (diff)
downloadthrift-055fe67ec1856d25f7ad3b98b5cd172fdf8e2c70.tar.gz
THRIFT-5352: Fix construction of Py exceptions with no fields
Client: py When no fields are present, we don't get the special constructor that uses __setattr__ to avoid these checks. So the default constructor sets message normally and triggers the anti-mutation tripwires.
Diffstat (limited to 'test/DebugProtoTest.thrift')
-rw-r--r--test/DebugProtoTest.thrift2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift
index 1ab0f6aea..5d0face4b 100644
--- a/test/DebugProtoTest.thrift
+++ b/test/DebugProtoTest.thrift
@@ -245,6 +245,8 @@ exception MutableException {
1: string msg;
} (python.immutable = "false")
+exception ExceptionWithoutFields {}
+
service ServiceForExceptionWithAMap {
void methodThatThrowsAnException() throws (1: ExceptionWithAMap xwamap);
}