Scrapy, a fast high-level web crawling & scraping framework for Python.
do not test multiple instantation warnings
Daniel Graña3e42646ce19e
diff --git a/scrapy/tests/test_utils_deprecate.py b/scrapy/tests/test_utils_deprecate.pyindex 75a53b2bf..07b9a3dd5 100644--- a/scrapy/tests/test_utils_deprecate.py+++ b/scrapy/tests/test_utils_deprecate.py@@ -109,10 +109,8 @@ class WarnWhenSubclassedTest(unittest.TestCase):passwith warnings.catch_warnings(record=True) as w:- # warns only once on instantations in the same lineno- for _ in range(10):- _, lineno = Deprecated(), inspect.getlineno(inspect.currentframe())- _ = UserClass() # subclass instances don't warn+ _, lineno = Deprecated(), inspect.getlineno(inspect.currentframe())+ _ = UserClass() # subclass instances don't warnw = self._mywarnings(w)self.assertEqual(len(w), 1)