Merge branch 'test-ci', remote-tracking branch 'origin/pr/107'

This commit is contained in:
lilydjwg 2019-04-08 12:25:27 +08:00
commit 8ade0f68b0
4 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ python:
- "3.7"
- "nightly"
- "pypy3.5"
install: pip install -U $DEPS "pytest<4.1" pytest-asyncio pytest-xdist flaky structlog
install: pip install -U $DEPS pytest pytest-asyncio flaky structlog
script: pytest
env:
global:

View File

@ -343,7 +343,7 @@ branch
Which branch to track? Default: ``master``.
use_max_tag
Set this to ``true`` to check for the max tag on BitBucket. Will return the biggest one
Set this to ``true`` to check for the max tag on GitLab. Will return the biggest one
sorted by ``pkg_resources.parse_version``.
host

View File

@ -28,7 +28,6 @@ setup(
tests_require = [
'pytest',
'pytest-asyncio',
'pytest-xdist',
'flaky',
],
entry_points = {

View File

@ -65,7 +65,8 @@ def raise_on_logger_msg():
if method_name in ('warning', 'error'):
if 'exc_info' in event_dict:
raise event_dict['exc_info']
raise RuntimeError(event_dict['event'])
if not event_dict['event'].startswith('rate limited'):
raise RuntimeError(event_dict['event'])
return event_dict['event']
structlog.configure([proc])