Scrapy, a fast high-level web crawling & scraping framework for Python.
Test: make sure scrapy.item.Item does not issue a deprecation warning
Eugenio Lacuesta622ce860669b
diff --git a/tests/test_item.py b/tests/test_item.pyindex 1220bc98a..f35a2b9f9 100644--- a/tests/test_item.py+++ b/tests/test_item.py@@ -347,5 +347,18 @@ class BaseItemTest(unittest.TestCase):self.assertEqual(warnings[0].category, ScrapyDeprecationWarning)+class ItemNoDeprecationWarningTest(unittest.TestCase):++ def test_no_deprecation_warning(self):+ with catch_warnings(record=True) as warnings:+ Item()+ self.assertEqual(len(warnings), 0)+ with catch_warnings(record=True) as warnings:+ class SubclassedItem(Item):+ pass+ SubclassedItem()+ self.assertEqual(len(warnings), 0)++if __name__ == "__main__":unittest.main()