You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_________________________________________________ ERROR at setup of TestChild1.test _________________________________________________
request = <SubRequest 'checker' for <Function 'test'>>
@pytest.fixture
def checker(request):
> assert len(request.keywords.get('marker').args) == 1
E assert 2 == 1
E + where 2 = len(('arg1', 'arg2'))
E + where ('arg1', 'arg2') = <MarkInfo 'marker' args=('arg1', 'arg2') kwargs={}>.args
E + where <MarkInfo 'marker' args=('arg1', 'arg2') kwargs={}> = <bound method NodeKeywords.get of <NodeKeywords for node <Function 'test'>>>('marker')
E + where <bound method NodeKeywords.get of <NodeKeywords for node <Function 'test'>>> = <NodeKeywords for node <Function 'test'>>.get
E + where <NodeKeywords for node <Function 'test'>> = <SubRequest 'checker' for <Function 'test'>>.keywords
test_marker_bug.py:11: AssertionError
Originally reported by: David Szotten (BitBucket: davidszotten, GitHub: davidszotten)
it looks like using custom markers on subclasses, together with a fixture on the base class causes siblings to see each other's markers:
This might be related to #535
The text was updated successfully, but these errors were encountered: