Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 61b6637

Browse files
committed
Fix flake8 complaints
1 parent 732eaa3 commit 61b6637

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

tests/test_backoff.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ def test_on_exception_callable_max_tries_reads_every_time(monkeypatch):
552552
monkeypatch.setattr('time.sleep', lambda x: None)
553553

554554
lookups = []
555+
555556
def lookup_max_tries():
556557
lookups.append(True)
557558
return 3

tests/test_backoff_async.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# coding:utf-8
22

33
import asyncio # Python 3.5 code and syntax is allowed in this file
4-
import backoff
5-
import pytest
64
import random
75

6+
import pytest
7+
8+
import backoff
89
from tests.common import _log_hdlrs, _save_target
910

1011

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

578579
lookups = []
580+
579581
def lookup_max_tries():
580582
lookups.append(True)
581583
return 3
@@ -595,7 +597,6 @@ def exceptor():
595597
assert len(lookups) == 2
596598

597599

598-
599600
@pytest.mark.asyncio
600601
async def test_on_exception_callable_gen_kwargs():
601602

0 commit comments

Comments
 (0)