Skip to content

Commit

Permalink
Fix flake8 complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
bgreen-litl committed Jun 7, 2022
1 parent 732eaa3 commit 61b6637
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/test_backoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ def test_on_exception_callable_max_tries_reads_every_time(monkeypatch):
monkeypatch.setattr('time.sleep', lambda x: None)

lookups = []

def lookup_max_tries():
lookups.append(True)
return 3
Expand Down
7 changes: 4 additions & 3 deletions tests/test_backoff_async.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# coding:utf-8

import asyncio # Python 3.5 code and syntax is allowed in this file
import backoff
import pytest
import random

import pytest

import backoff
from tests.common import _log_hdlrs, _save_target


Expand Down Expand Up @@ -576,6 +577,7 @@ async def test_on_exception_callable_max_tries_reads_every_time(monkeypatch):
monkeypatch.setattr('asyncio.sleep', _await_none)

lookups = []

def lookup_max_tries():
lookups.append(True)
return 3
Expand All @@ -595,7 +597,6 @@ def exceptor():
assert len(lookups) == 2



@pytest.mark.asyncio
async def test_on_exception_callable_gen_kwargs():

Expand Down

0 comments on commit 61b6637

Please sign in to comment.