Use new no-match functions to replace previous idiom

This commit is contained in:
Bruno Oliveira
2019-10-05 14:18:51 -03:00
parent 0c18e24433
commit 47c2091ecd
21 changed files with 77 additions and 76 deletions

View File

@@ -1216,7 +1216,7 @@ def test_runs_twice(testdir, run_and_parse):
)
result, dom = run_and_parse(f, f)
assert "INTERNALERROR" not in result.stdout.str()
result.stdout.no_fnmatch_line("*INTERNALERROR*")
first, second = [x["classname"] for x in dom.find_by_tag("testcase")]
assert first == second
@@ -1231,7 +1231,7 @@ def test_runs_twice_xdist(testdir, run_and_parse):
)
result, dom = run_and_parse(f, "--dist", "each", "--tx", "2*popen")
assert "INTERNALERROR" not in result.stdout.str()
result.stdout.no_fnmatch_line("*INTERNALERROR*")
first, second = [x["classname"] for x in dom.find_by_tag("testcase")]
assert first == second
@@ -1271,7 +1271,7 @@ def test_fancy_items_regression(testdir, run_and_parse):
result, dom = run_and_parse()
assert "INTERNALERROR" not in result.stdout.str()
result.stdout.no_fnmatch_line("*INTERNALERROR*")
items = sorted("%(classname)s %(name)s" % x for x in dom.find_by_tag("testcase"))
import pprint