test_pc_rpc: fix equality bug (#1188) (#1239)

Fixes bug from 5108ed8. Truth value of multi-element numpy array is
not defined. Completes #1186 and fixes/amends #1188.

Signed-off-by: Drew Risinger <drewrisinger@users.noreply.github.com>
This commit is contained in:
Drew 2019-01-10 21:15:44 -05:00 committed by Sébastien Bourdeauducq
parent 101671fbbf
commit 66861e6708

View File

@ -100,7 +100,7 @@ class RPCCase(unittest.TestCase):
"""
def _annotated_function(
arg1: str, arg2: np.ndarray = np.array([1, 2])
arg1: str, arg2: np.ndarray = np.array([1,])
) -> np.ndarray:
"""Sample docstring."""
return arg1