Skip to content

Commit

Permalink
Fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Oct 19, 2015
1 parent 0e0ef00 commit 0e6792e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion celery/tests/utils/test_saferepr.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
b'integer': 1,
b'float': 1.3,
b'decimal': Decimal("1.3"),
b'long': long_t(1.3),
b'long': long_t(4),
b'complex': complex(13.3),
}
D_INT_KEYS = {v: k for k, v in items(D_NUMBERS)}
Expand Down
2 changes: 1 addition & 1 deletion celery/utils/saferepr.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _saferepr(o, maxlen=None, maxlevels=3, seen=None):
if isinstance(token, _literal):
val = token.value
elif isinstance(token, _key):
val = repr(token.value).replace("u'", "'")
val = saferepr(token.value, maxlen, maxlevels)
elif isinstance(token, _quoted):
val = token.value
if IS_PY3 and isinstance(val, bytes):
Expand Down

0 comments on commit 0e6792e

Please sign in to comment.