make test suite more tolerable against xdist causing warnings itself (which it does
currently) --HG-- branch : plugtestfix
This commit is contained in:
@@ -58,14 +58,10 @@ class TestClass:
|
||||
class TestClass1:
|
||||
def __init__(self):
|
||||
pass
|
||||
class TestClass2(object):
|
||||
def __init__(self):
|
||||
pass
|
||||
""")
|
||||
result = testdir.runpytest("-rw")
|
||||
result.stdout.fnmatch_lines("""
|
||||
result.stdout.fnmatch_lines_random("""
|
||||
WC1*test_class_with_init_warning.py*__init__*
|
||||
*2 warnings*
|
||||
""")
|
||||
|
||||
def test_class_subclassobject(self, testdir):
|
||||
|
||||
@@ -375,9 +375,7 @@ class TestMetafuncFunctional:
|
||||
assert metafunc.cls == TestClass
|
||||
""")
|
||||
result = testdir.runpytest(p, "-v")
|
||||
result.stdout.fnmatch_lines([
|
||||
"*2 passed in*",
|
||||
])
|
||||
result.assertoutcome(passed=2)
|
||||
|
||||
def test_addcall_with_two_funcargs_generators(self, testdir):
|
||||
testdir.makeconftest("""
|
||||
|
||||
Reference in New Issue
Block a user