From bfb4b9967f4f55a22f0fda8d0f0cde0c49162e46 Mon Sep 17 00:00:00 2001 From: meejah Date: Mon, 22 Aug 2022 16:09:03 -0600 Subject: [PATCH] actually-appease python2 ... --- src/wormhole_mailbox_server/test/test_web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wormhole_mailbox_server/test/test_web.py b/src/wormhole_mailbox_server/test/test_web.py index c5feb2b..c62a3e2 100644 --- a/src/wormhole_mailbox_server/test/test_web.py +++ b/src/wormhole_mailbox_server/test/test_web.py @@ -811,7 +811,7 @@ def test_hashcash_wrong_resource(self): def test_hashcash_correct(self): yield self._setup_relay(do_listen=True, permissions="hashcash") - if not shutil.which or not shutil.which("hashcash"): + if not hasattr(shutil, "which") or not shutil.which("hashcash"): raise unittest.SkipTest("no 'hashcash' binary installed") c = yield self.make_client() welcome = yield c.next_non_ack() @@ -843,7 +843,7 @@ def test_hashcash_correct(self): def test_hashcash_wrong_bits(self): yield self._setup_relay(do_listen=True, permissions="hashcash") - if not shutil.which or not shutil.which("hashcash"): + if not hasattr(shutil, "which") or not shutil.which("hashcash"): raise unittest.SkipTest("no 'hashcash' binary installed") c = yield self.make_client() welcome = yield c.next_non_ack()