From af71e57732f52247c8dde8124c5ab3950a4865e4 Mon Sep 17 00:00:00 2001 From: nanoric Date: Sun, 7 Oct 2018 03:40:56 -0400 Subject: [PATCH] =?UTF-8?q?[Fix]=20=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=B8=AABug?= =?UTF-8?q?=EF=BC=9A=E8=B0=83=E7=94=A8tests.Promise.set=5Fexception?= =?UTF-8?q?=E5=90=8E=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E6=8A=9B=E5=87=BA?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Promise.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Promise.py b/tests/Promise.py index a27046cf..51aab6b6 100644 --- a/tests/Promise.py +++ b/tests/Promise.py @@ -24,7 +24,7 @@ class Promise(object): res = self._queue.get(timeout=timeout) if res[0] == PromiseResultType.Result: return res[1] - raise res[2] + raise res[1] def set_exception(self, val): self._queue.put((PromiseResultType.Exception, val))