From c160b5f5993779fbd41b69b8848d8610a8715a90 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Wed, 15 May 2019 19:55:45 +0300 Subject: [PATCH] TST: allow both attribute orders in xml test --- test/test_feed.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_feed.py b/test/test_feed.py index d51a879b4..b55b244b2 100644 --- a/test/test_feed.py +++ b/test/test_feed.py @@ -86,7 +86,8 @@ def test_dummy_xml(): """ - 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")