diff options
author | Omer Katz <omer.drow@gmail.com> | 2017-12-17 12:15:42 +0200 |
---|---|---|
committer | Omer Katz <omer.drow@gmail.com> | 2017-12-17 12:15:42 +0200 |
commit | 3a7cdb07c9bf75b54282274d711af15ca6ad5d9f (patch) | |
tree | b4b5a3aa64a7bf9ccf139a0bf74af11f9db73cb9 /t | |
parent | 6fb1f33de46be837d835b0d511957ebc3011fb37 (diff) | |
download | kombu-3a7cdb07c9bf75b54282274d711af15ca6ad5d9f.tar.gz |
Make flake8 happy.
Diffstat (limited to 't')
-rw-r--r-- | t/unit/test_log.py | 18 | ||||
-rw-r--r-- | t/unit/utils/test_encoding.py | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/t/unit/test_log.py b/t/unit/test_log.py index 5946755b..772b520d 100644 --- a/t/unit/test_log.py +++ b/t/unit/test_log.py @@ -18,24 +18,24 @@ from kombu.log import ( class test_get_logger: def test_when_string(self): - l = get_logger('foo') + logger = get_logger('foo') - assert l is logging.getLogger('foo') - h1 = l.handlers[0] + assert logger is logging.getLogger('foo') + h1 = logger.handlers[0] assert isinstance(h1, logging.NullHandler) def test_when_logger(self): - l = get_logger(logging.getLogger('foo')) - h1 = l.handlers[0] + logger = get_logger(logging.getLogger('foo')) + h1 = logger.handlers[0] assert isinstance(h1, logging.NullHandler) def test_with_custom_handler(self): - l = logging.getLogger('bar') + logger = logging.getLogger('bar') handler = logging.NullHandler() - l.addHandler(handler) + logger.addHandler(handler) - l = get_logger('bar') - assert l.handlers[0] is handler + logger = get_logger('bar') + assert logger.handlers[0] is handler def test_get_loglevel(self): assert get_loglevel('DEBUG') == logging.DEBUG diff --git a/t/unit/utils/test_encoding.py b/t/unit/utils/test_encoding.py index e3d1040a..a3d6bdc8 100644 --- a/t/unit/utils/test_encoding.py +++ b/t/unit/utils/test_encoding.py @@ -97,9 +97,9 @@ class test_safe_str: def test_when_unrepresentable(self): - class O(object): + class UnrepresentableObject(object): def __repr__(self): raise KeyError('foo') - assert '<Unrepresentable' in safe_str(O()) + assert '<Unrepresentable' in safe_str(UnrepresentableObject()) |