diff options
author | Chih-Hsuan Yen <1937689+yan12125@users.noreply.github.com> | 2023-05-18 04:10:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 13:10:51 -0700 |
commit | a352bdbc34130aea537040cd2bfe9eb73d63c74b (patch) | |
tree | 4b67fb83af3870872a8fa90590e54256fd6bc696 /grpc | |
parent | cb14043f820271287ec0a487467612c1932c80f9 (diff) | |
download | flatbuffers-a352bdbc34130aea537040cd2bfe9eb73d63c74b.tar.gz flatbuffers-a352bdbc34130aea537040cd2bfe9eb73d63c74b.tar.bz2 flatbuffers-a352bdbc34130aea537040cd2bfe9eb73d63c74b.zip |
Fix python tests (#7960)
* Don't generate types unless --python-typing specified
Fixes https://github.com/google/flatbuffers/issues/7944
* Fix incorrect import statements
Fixes https://github.com/google/flatbuffers/issues/7951
* Fix $PYTHONPATH in PythonTest.sh
Regressed from https://github.com/google/flatbuffers/pull/7529
* PythonTest: fail if something goes wrong
GitHub Actions runs `bash PythonTest.sh`, and thus failures were not
visible.
* Build flatc for Python tests
* Regenerate codes
---------
Co-authored-by: Derek Bailey <derekbailey@google.com>
Diffstat (limited to 'grpc')
-rw-r--r-- | grpc/examples/python/greeter/models/HelloReply.py | 2 | ||||
-rw-r--r-- | grpc/examples/python/greeter/models/HelloRequest.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/grpc/examples/python/greeter/models/HelloReply.py b/grpc/examples/python/greeter/models/HelloReply.py index bf182fc8..b1adc8c3 100644 --- a/grpc/examples/python/greeter/models/HelloReply.py +++ b/grpc/examples/python/greeter/models/HelloReply.py @@ -40,7 +40,7 @@ def Start(builder): def HelloReplyAddMessage(builder, message): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(message), 0) -def AddMessage(builder: flatbuffers.Builder, message: int): +def AddMessage(builder, message): HelloReplyAddMessage(builder, message) def HelloReplyEnd(builder): diff --git a/grpc/examples/python/greeter/models/HelloRequest.py b/grpc/examples/python/greeter/models/HelloRequest.py index 9df6b22c..db217dd2 100644 --- a/grpc/examples/python/greeter/models/HelloRequest.py +++ b/grpc/examples/python/greeter/models/HelloRequest.py @@ -40,7 +40,7 @@ def Start(builder): def HelloRequestAddName(builder, name): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0) -def AddName(builder: flatbuffers.Builder, name: int): +def AddName(builder, name): HelloRequestAddName(builder, name) def HelloRequestEnd(builder): |