make test suite more tolerable against xdist causing warnings itself (which it does

currently)

--HG--
branch : plugtestfix
This commit is contained in:
holger krekel
2015-04-27 15:06:47 +02:00
parent 2d8f115d8c
commit 424e5d1394
7 changed files with 17 additions and 20 deletions

View File

@@ -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):

View File

@@ -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("""