Skip to content

Commit

Permalink
TST: allow both attribute orders in xml test
Browse files Browse the repository at this point in the history
  • Loading branch information
pv committed May 15, 2019
1 parent cb1821d commit c160b5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def test_dummy_xml():
</entry>
</feed>
"""
assert text == expected
expected2 = expected.replace('type="html" xml:lang="en"', 'xml:lang="en" type="html"')
assert text == expected or text == expected2


@pytest.mark.skipif(not HAVE_FEEDPARSER, reason="test requires feedparser module")
Expand Down

0 comments on commit c160b5f

Please sign in to comment.