Check for ImportError in benchmarks/plasma.py

Change-Id: I6e6779b656e2e18350e6d2de82edd6239a7b915c
This commit is contained in:
Wes McKinney committed 2019-01-04 16:08:10 -06:00
1 parent 008ae7b98a
commit 4938932d24
2 files changed
+8 -11

No files matched your search

+6 -2
View File
@@ -18,8 +18,12 @@
import numpy as np
import timeit
import pyarrow.plasma as plasma
try:
import pyarrow.plasma as plasma
except ImportError:
# TODO(wesm): These are not asv benchmarks, so we can just fail
# silently here
pass
class SimplePlasmaThroughput(object):
"""Benchmark plasma store throughput with a single client."""
+2 -9
View File
@@ -24,15 +24,8 @@ import sys
import tempfile
import time
try:
from pyarrow._plasma import (ObjectID, ObjectNotAvailable, # noqa
PlasmaBuffer, PlasmaClient, connect)
except ImportError:
# TODO(wesm): These are not asv benchmarks, so we can just fail
# silently here
pass
from pyarrow._plasma import (ObjectID, ObjectNotAvailable, # noqa
PlasmaBuffer, PlasmaClient, connect)
# The Plasma TensorFlow Operator needs to be compiled on the end user's
# machine since the TensorFlow ABI is not stable between versions.