From 532bfd9f5a1a7448e0e8fc4eae269ed5479f3048 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Mon, 27 Jan 2020 10:37:37 -0500 Subject: [PATCH] =?UTF-8?q?more=20python=203=20changes=20needed=20?= =?UTF-8?q?=E2=80=94=20why=20in=20this=20merge=20though=3F=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hubblestack/utils/signing.py | 2 +- tests/unittests/test_pulsar.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hubblestack/utils/signing.py b/hubblestack/utils/signing.py index 19bbc04e1..2fa667d3c 100644 --- a/hubblestack/utils/signing.py +++ b/hubblestack/utils/signing.py @@ -43,7 +43,7 @@ import re import json import inspect -import cStringIO +import io as cStringIO from collections import OrderedDict, namedtuple diff --git a/tests/unittests/test_pulsar.py b/tests/unittests/test_pulsar.py index 383651429..b21527837 100644 --- a/tests/unittests/test_pulsar.py +++ b/tests/unittests/test_pulsar.py @@ -243,7 +243,10 @@ def assert_len_listify_is(list_arg, expected): def assert_str_listify_is(list_arg, expected): """ compact comparifier """ - assert str(sorted(listify_fn(list_arg))) == str(sorted(expected)) + def boo(x): + return str(x) + + assert str(sorted(listify_fn(list_arg), key=boo)) == str(sorted(expected, key=boo)) assert_len_listify_is(None, 0) assert_len_listify_is([None], 0)