summaryrefslogtreecommitdiff
path: root/test/py.twisted
diff options
context:
space:
mode:
authorElvis Pranskevichus <elvispranskevichus@pinterest.com>2019-12-11 16:47:52 -0500
committerDuru Can Celasun <can@dcc.im>2019-12-12 13:50:42 +0000
commit9c43962da8e4b530014619e3703a279053cf2182 (patch)
tree9b862189ed6e5fbdd9819a964c7f2efe69aa9bb4 /test/py.twisted
parent9320f891d7d972fc2cc4f9569b66767c5dfc4242 (diff)
downloadthrift-9c43962da8e4b530014619e3703a279053cf2182.tar.gz
Revert "Revert "THRIFT-4002: Make generated exception classes immutable by default""
This reverts commit 1234ddf8a5c98d5d700c82e087f04725170ad581.
Diffstat (limited to 'test/py.twisted')
-rwxr-xr-xtest/py.twisted/test_suite.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/py.twisted/test_suite.py b/test/py.twisted/test_suite.py
index 02eb7f14f..6e044939b 100755
--- a/test/py.twisted/test_suite.py
+++ b/test/py.twisted/test_suite.py
@@ -76,10 +76,7 @@ class TestHandler:
def testException(self, s):
if s == 'Xception':
- x = Xception()
- x.errorCode = 1001
- x.message = s
- raise x
+ raise Xception(1001, s)
elif s == "throw_undeclared":
raise ValueError("foo")