Skip to content

Commit

Permalink
more python 3 changes needed — why in this merge though??
Browse files Browse the repository at this point in the history
  • Loading branch information
jettero committed Jan 27, 2020
1 parent e09e470 commit 532bfd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hubblestack/utils/signing.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import re
import json
import inspect
import cStringIO
import io as cStringIO

from collections import OrderedDict, namedtuple

Expand Down
5 changes: 4 additions & 1 deletion tests/unittests/test_pulsar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 532bfd9

Please sign in to comment.