Skip to content

Commit

Permalink
actually-appease python2 ...
Browse files Browse the repository at this point in the history
  • Loading branch information
meejah committed Aug 22, 2022
1 parent 8bc87a8 commit bfb4b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wormhole_mailbox_server/test/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit bfb4b99

Please sign in to comment.