mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-16 01:07:29 +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:
@@ -1050,7 +1050,7 @@ class Monster(object):
|
||||
def TestnestedflatbufferNestedRoot(self):
|
||||
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(30))
|
||||
if o != 0:
|
||||
from .MyGame.Example.Monster import Monster
|
||||
from MyGame.Example.Monster import Monster
|
||||
return Monster.GetRootAs(self._tab.Bytes, self._tab.Vector(o))
|
||||
return 0
|
||||
|
||||
@@ -1581,7 +1581,7 @@ class Monster(object):
|
||||
def TestrequirednestedflatbufferNestedRoot(self):
|
||||
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(102))
|
||||
if o != 0:
|
||||
from .MyGame.Example.Monster import Monster
|
||||
from MyGame.Example.Monster import Monster
|
||||
return Monster.GetRootAs(self._tab.Bytes, self._tab.Vector(o))
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user