summaryrefslogtreecommitdiff
path: root/t/unit/utils/test_debug.py
diff options
context:
space:
mode:
Diffstat (limited to 't/unit/utils/test_debug.py')
-rw-r--r--t/unit/utils/test_debug.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/unit/utils/test_debug.py b/t/unit/utils/test_debug.py
index d78d7032..2439f449 100644
--- a/t/unit/utils/test_debug.py
+++ b/t/unit/utils/test_debug.py
@@ -2,7 +2,6 @@ import logging
from case import Mock, patch
-from kombu.five import bytes_if_py2
from kombu.utils.debug import Logwrapped, setup_logging
@@ -30,12 +29,12 @@ class test_Logwrapped:
assert W.instance is not None
assert W.logger is logger
- W.instance.__repr__ = lambda s: bytes_if_py2('foo')
+ W.instance.__repr__ = lambda s: 'foo'
assert repr(W) == 'foo'
W.instance.some_attr = 303
assert W.some_attr == 303
- W.instance.some_method.__name__ = bytes_if_py2('some_method')
+ W.instance.some_method.__name__ = 'some_method'
W.some_method(1, 2, kw=1)
W.instance.some_method.assert_called_with(1, 2, kw=1)