Scrapy, a fast high-level web crawling & scraping framework for Python.
refactor #3 Remove inner class in form test
noon877398a3dee8
diff --git a/tests/test_http_request.py b/tests/test_http_request.pyindex 39afc5fd1..71d442a81 100644--- a/tests/test_http_request.py+++ b/tests/test_http_request.py@@ -1452,12 +1452,8 @@ class FormRequestTest(RequestTest):</body></html>""")- class CustomFormdata:- def __iter__(self):- raise ValueError("Custom iteration error for testing")-with self.assertRaises(ValueError) as context:- FormRequest.from_response(response, formdata=CustomFormdata())+ FormRequest.from_response(response, formdata=("a",))self.assertIn("formdata should be a dict or iterable of tuples", str(context.exception)