From 66861e6708f901230664b983f9850ffc142e918b Mon Sep 17 00:00:00 2001 From: Drew Date: Thu, 10 Jan 2019 21:15:44 -0500 Subject: [PATCH] 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 --- artiq/test/test_pc_rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/test/test_pc_rpc.py b/artiq/test/test_pc_rpc.py index 2a3c3e866..4ca81d020 100644 --- a/artiq/test/test_pc_rpc.py +++ b/artiq/test/test_pc_rpc.py @@ -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