diff --git a/scrapy/tests/test_utils_sitemap.py b/scrapy/tests/test_utils_sitemap.py index 7423d1782..0049e5c40 100644 --- a/scrapy/tests/test_utils_sitemap.py +++ b/scrapy/tests/test_utils_sitemap.py @@ -159,6 +159,20 @@ Disallow: /forum/active/ {'lastmod': '2013-07-15', 'loc': 'http://www.example.com/sitemap3.xml'}, ]) + def test_comment(self): + s = Sitemap(""" + + + http://www.example.com/ + + + """) + + self.assertEqual(list(s), [ + {'loc': 'http://www.example.com/'} + ]) + def test_alternate(self): s = Sitemap("""