mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-07 22:03:40 +00:00
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>
This commit is contained in:
@@ -58,19 +58,19 @@ def Start(builder):
|
||||
def StatAddId(builder, id):
|
||||
builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(id), 0)
|
||||
|
||||
def AddId(builder: flatbuffers.Builder, id: int):
|
||||
def AddId(builder, id):
|
||||
StatAddId(builder, id)
|
||||
|
||||
def StatAddVal(builder, val):
|
||||
builder.PrependInt64Slot(1, val, 0)
|
||||
|
||||
def AddVal(builder: flatbuffers.Builder, val: int):
|
||||
def AddVal(builder, val):
|
||||
StatAddVal(builder, val)
|
||||
|
||||
def StatAddCount(builder, count):
|
||||
builder.PrependUint16Slot(2, count, 0)
|
||||
|
||||
def AddCount(builder: flatbuffers.Builder, count: int):
|
||||
def AddCount(builder, count):
|
||||
StatAddCount(builder, count)
|
||||
|
||||
def StatEnd(builder):
|
||||
|
||||
Reference in New Issue
Block a user