Merge branch 'pyup-scheduled-update-2018-06-04'

This commit is contained in:
Florian Bruhin 2018-06-07 22:57:48 +02:00
commit a13618fe2a
6 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,4 @@
# This file is automatically generated by scripts/dev/recompile_requirements.py # This file is automatically generated by scripts/dev/recompile_requirements.py
docutils==0.14 docutils==0.14
pyroma==2.3 pyroma==2.3.1

View File

@ -16,22 +16,22 @@ itsdangerous==0.24
# Jinja2==2.10 # Jinja2==2.10
Mako==1.0.7 Mako==1.0.7
# MarkupSafe==1.0 # MarkupSafe==1.0
more-itertools==4.1.0 more-itertools==4.2.0
parse==1.8.2 parse==1.8.4
parse-type==0.4.2 parse-type==0.4.2
pluggy==0.6.0 pluggy==0.6.0
py==1.5.3 py==1.5.3
py-cpuinfo==4.0.0 py-cpuinfo==4.0.0
pytest==3.5.1 pytest==3.6.0
pytest-bdd==2.21.0 pytest-bdd==2.21.0
pytest-benchmark==3.1.1 pytest-benchmark==3.1.1
pytest-cov==2.5.1 pytest-cov==2.5.1
pytest-faulthandler==1.5.0 pytest-faulthandler==1.5.0
pytest-instafail==0.4.0 pytest-instafail==0.4.0
pytest-mock==1.10.0 pytest-mock==1.10.0
pytest-qt==2.3.2 pytest-qt==2.4.0
pytest-repeat==0.4.1 pytest-repeat==0.4.1
pytest-rerunfailures==4.0 pytest-rerunfailures==4.1
pytest-travis-fold==1.3.0 pytest-travis-fold==1.3.0
pytest-xvfb==1.1.0 pytest-xvfb==1.1.0
PyVirtualDisplay==0.2.1 PyVirtualDisplay==0.2.1

View File

@ -80,7 +80,7 @@ def _apply_platform_markers(config, item):
] ]
for searched_marker, condition, default_reason in markers: for searched_marker, condition, default_reason in markers:
marker = item.get_marker(searched_marker) marker = item.get_closest_marker(searched_marker)
if not marker or not condition: if not marker or not condition:
continue continue
@ -138,9 +138,9 @@ def pytest_collection_modifyitems(config, items):
item.add_marker(pytest.mark.end2end) item.add_marker(pytest.mark.end2end)
_apply_platform_markers(config, item) _apply_platform_markers(config, item)
if item.get_marker('xfail_norun'): if list(item.iter_markers('xfail_norun')):
item.add_marker(pytest.mark.xfail(run=False)) item.add_marker(pytest.mark.xfail(run=False))
if item.get_marker('js_prompt'): if list(item.iter_markers('js_prompt')):
if config.webengine: if config.webengine:
item.add_marker(pytest.mark.skipif( item.add_marker(pytest.mark.skipif(
PYQT_VERSION <= 0x050700, PYQT_VERSION <= 0x050700,
@ -226,7 +226,7 @@ def set_backend(monkeypatch, request):
@pytest.fixture(autouse=True) @pytest.fixture(autouse=True)
def apply_fake_os(monkeypatch, request): def apply_fake_os(monkeypatch, request):
fake_os = request.node.get_marker('fake_os') fake_os = request.node.get_closest_marker('fake_os')
if not fake_os: if not fake_os:
return return

View File

@ -151,7 +151,7 @@ def pytest_collection_modifyitems(config, items):
for item in items: for item in items:
for name, prefix, pytest_mark, condition in markers: for name, prefix, pytest_mark, condition in markers:
marker = item.get_marker(name) marker = item.get_closest_marker(name)
if marker and condition: if marker and condition:
if marker.args: if marker.args:
text = '{}: {}'.format(prefix, marker.args[0]) text = '{}: {}'.format(prefix, marker.args[0])

View File

@ -394,7 +394,7 @@ class QuteProc(testprocess.Process):
elif (is_ignored_qt_message(self.request.config, line) or elif (is_ignored_qt_message(self.request.config, line) or
is_ignored_lowlevel_message(line) or is_ignored_lowlevel_message(line) or
is_ignored_chromium_message(line) or is_ignored_chromium_message(line) or
self.request.node.get_marker('no_invalid_lines')): list(self.request.node.iter_markers('no_invalid_lines'))):
self._log("IGNORED: {}".format(line)) self._log("IGNORED: {}".format(line))
return None return None
else: else:
@ -501,7 +501,7 @@ class QuteProc(testprocess.Process):
"""Extend wait_for to add divisor if a test is xfailing.""" """Extend wait_for to add divisor if a test is xfailing."""
__tracebackhide__ = (lambda e: __tracebackhide__ = (lambda e:
e.errisinstance(testprocess.WaitForTimeout)) e.errisinstance(testprocess.WaitForTimeout))
xfail = self.request.node.get_marker('xfail') xfail = self.request.node.get_closest_marker('xfail')
if xfail and (not xfail.args or xfail.args[0]): if xfail and (not xfail.args or xfail.args[0]):
kwargs['divisor'] = 10 kwargs['divisor'] = 10
else: else:

View File

@ -68,7 +68,7 @@ class FakeNode:
def __init__(self, call): def __init__(self, call):
self.rep_call = call self.rep_call = call
def get_marker(self, _name): def get_closest_marker(self, _name):
return None return None