summaryrefslogtreecommitdiff
path: root/tests/py_test.py
diff options
context:
space:
mode:
authorRobert Winslow <rw@users.noreply.github.com>2019-12-24 02:14:55 -0500
committerGitHub <noreply@github.com>2019-12-24 02:14:55 -0500
commit7de668053fafaccef15338df2e625d5c6cda9278 (patch)
tree5548eb0d8bae12c004fde220fd7bb2a52a33aada /tests/py_test.py
parent3a70e0b30890ca265a33f099912762eb51ac505f (diff)
downloadflatbuffers-7de668053fafaccef15338df2e625d5c6cda9278.tar.gz
flatbuffers-7de668053fafaccef15338df2e625d5c6cda9278.tar.bz2
flatbuffers-7de668053fafaccef15338df2e625d5c6cda9278.zip
CI: New Docker tests for Python with numpy (#5677)
* New Docker tests for Python with numpy * print numpy status in test suite
Diffstat (limited to 'tests/py_test.py')
-rw-r--r--tests/py_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/py_test.py b/tests/py_test.py
index ee2fb36b..f811214e 100644
--- a/tests/py_test.py
+++ b/tests/py_test.py
@@ -2368,6 +2368,13 @@ def main():
kwargs = dict(argv=sys.argv[:-3])
+ # show whether numpy is present, as it changes the test logic:
+ try:
+ import numpy
+ print('numpy available')
+ except ImportError:
+ print('numpy not available')
+
# run tests, and run some language comparison checks if needed:
success = backward_compatible_run_tests(**kwargs)
if success and os.environ.get('COMPARE_GENERATED_TO_GO', 0) == "1":