summaryrefslogtreecommitdiff
path: root/lib/py/src
diff options
context:
space:
mode:
authorBryan Duxbury <bryanduxbury@apache.org>2011-03-21 17:38:22 +0000
committerBryan Duxbury <bryanduxbury@apache.org>2011-03-21 17:38:22 +0000
commit59d4efda817f73eb195f47ff9f04cb0f4ec47525 (patch)
tree38aba98ac496e4bce5b9ea0bf0e4bdbb3f888f98 /lib/py/src
parent81a13cbd5d2a5fbd9a81cd2b19c9916cb88c942e (diff)
downloadthrift-59d4efda817f73eb195f47ff9f04cb0f4ec47525.tar.gz
THRIFT-1094. py: bug in TCompactProto python readMessageEnd method and updated test cases
This patch fixes a TCompactProtocol bug and expands the test cases to exercise the problem. Patch: Will Pierce git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1083877 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'lib/py/src')
-rw-r--r--lib/py/src/protocol/TCompactProtocol.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/py/src/protocol/TCompactProtocol.py b/lib/py/src/protocol/TCompactProtocol.py
index 7ff07987a..280b54f0f 100644
--- a/lib/py/src/protocol/TCompactProtocol.py
+++ b/lib/py/src/protocol/TCompactProtocol.py
@@ -291,9 +291,8 @@ class TCompactProtocol(TProtocolBase):
return (name, type, seqid)
def readMessageEnd(self):
- assert self.state == VALUE_READ
+ assert self.state == CLEAR
assert len(self.__structs) == 0
- self.state = CLEAR
def readStructBegin(self):
assert self.state in (CLEAR, CONTAINER_READ, VALUE_READ), self.state