mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +01:00
fix last flake8 errors
This commit is contained in:
parent
30cc0f8cf9
commit
76a72e9742
3 changed files with 5 additions and 4 deletions
|
@ -10,6 +10,8 @@
|
|||
hooks:
|
||||
- id: flake8
|
||||
exclude: ^(setup.py|docs/source/conf.py)$
|
||||
args:
|
||||
- --ignore=W605
|
||||
- repo: git://github.com/pre-commit/mirrors-pylint
|
||||
sha: v1.7.1
|
||||
hooks:
|
||||
|
|
|
@ -118,7 +118,7 @@ from .passport.credentials import (Credentials,
|
|||
SecureData,
|
||||
FileCredentials,
|
||||
TelegramDecryptionError)
|
||||
from .version import __version__ # flake8: noqa
|
||||
from .version import __version__ # noqa: F401
|
||||
|
||||
__author__ = 'devs@python-telegram-bot.org'
|
||||
|
||||
|
|
|
@ -45,9 +45,8 @@ class TestDelayQueue(object):
|
|||
dsp(self.call)
|
||||
|
||||
starttime = mq.curtime()
|
||||
app_endtime = (
|
||||
(self.N * self.burst_limit /
|
||||
(1000 * self.time_limit_ms)) + starttime + 20) # wait up to 20 sec more than needed
|
||||
# wait up to 20 sec more than needed
|
||||
app_endtime = ((self.N * self.burst_limit / (1000 * self.time_limit_ms)) + starttime + 20)
|
||||
while not dsp._queue.empty() and mq.curtime() < app_endtime:
|
||||
sleep(1)
|
||||
assert dsp._queue.empty() is True # check loop exit condition
|
||||
|
|
Loading…
Reference in a new issue