THRIFT-256. python: Fix inheritance of services in the same IDL file
The old version of type_name did not fully qualify parent service names
when they were defined in the same IDL file, but it is necessary because
they end up in different Python files.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741833 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift
index e730b22..3adaf0c 100644
--- a/test/DebugProtoTest.thrift
+++ b/test/DebugProtoTest.thrift
@@ -82,6 +82,10 @@
i32 Janky(i32 arg)
}
+service Inherited extends Srv {
+ i32 identity(i32 arg)
+}
+
service EmptyService {}
// The only purpose of this thing is to increase the size of the generated code
diff --git a/test/py/TestSyntax.py b/test/py/TestSyntax.py
index 2921419..7e49989 100755
--- a/test/py/TestSyntax.py
+++ b/test/py/TestSyntax.py
@@ -6,3 +6,4 @@
# Just import these generated files to make sure they are syntactically valid
from DebugProtoTest import EmptyService
+from DebugProtoTest import Inherited