Skip to content

Commit

Permalink
tests: fix/harden test_record_property
Browse files Browse the repository at this point in the history
`-rv` is not a recognized reportchar.  Probably `-v` was meant, but is
not necessary to check that there are no warnings.

Followup to 2018cf1 (#3360).
  • Loading branch information
blueyed committed Jan 23, 2020
1 parent ad02f6f commit 252eae5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/test_junitxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,13 +1061,14 @@ def test_record(record_property, other):
record_property("foo", "<1");
"""
)
result, dom = run_and_parse("-rwv")
result, dom = run_and_parse("-rw")
node = dom.find_first_by_tag("testsuite")
tnode = node.find_first_by_tag("testcase")
psnode = tnode.find_first_by_tag("properties")
pnodes = psnode.find_by_tag("property")
pnodes[0].assert_attr(name="bar", value="1")
pnodes[1].assert_attr(name="foo", value="<1")
result.stdout.fnmatch_lines(["*= 1 passed in *"])


def test_record_property_same_name(testdir, run_and_parse):
Expand Down

0 comments on commit 252eae5

Please sign in to comment.