Skip to content

Commit e407cd3

Browse files
committed
tests: fix/harden test_record_property
`-rv` is not a recognized reportchar. Probably `-v` was meant, but is not necessary to check there are no warnings. Followup to 2018cf1 (pytest-dev#3360).
1 parent ad02f6f commit e407cd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/test_junitxml.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,13 +1061,14 @@ def test_record(record_property, other):
10611061
record_property("foo", "<1");
10621062
"""
10631063
)
1064-
result, dom = run_and_parse("-rwv")
1064+
result, dom = run_and_parse("-rw")
10651065
node = dom.find_first_by_tag("testsuite")
10661066
tnode = node.find_first_by_tag("testcase")
10671067
psnode = tnode.find_first_by_tag("properties")
10681068
pnodes = psnode.find_by_tag("property")
10691069
pnodes[0].assert_attr(name="bar", value="1")
10701070
pnodes[1].assert_attr(name="foo", value="<1")
1071+
result.stdout.fnmatch_lines(["*= 1 passed in *"])
10711072

10721073

10731074
def test_record_property_same_name(testdir, run_and_parse):

0 commit comments

Comments
 (0)