diff options
author | Omer Katz <omer.drow@gmail.com> | 2020-07-23 16:33:40 +0300 |
---|---|---|
committer | Omer Katz <omer.drow@gmail.com> | 2020-07-23 16:33:40 +0300 |
commit | 2c75db39e0d91c41384f5c2593ec2e630c8e7420 (patch) | |
tree | a04ab723ddb3fcbf672ae08054fd8515a28f90c7 /t/unit/utils/test_debug.py | |
parent | 7bc0e1d0731123024979aa122a907303e154ade1 (diff) | |
download | kombu-2c75db39e0d91c41384f5c2593ec2e630c8e7420.tar.gz |
Remove five usage from tests.
Diffstat (limited to 't/unit/utils/test_debug.py')
-rw-r--r-- | t/unit/utils/test_debug.py | 5 |
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) |