-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove_namespaces asserts on json TextResponse #295
Comments
It's parsel, not Scrapy. |
Yes, I noticed that, but I figured Scrapy should catch it. |
I don't think Scrapy should catch it, and Scrapy will only able to do that by overriding |
But |
The code is in parsel, not Scrapy. It should be done in parsel, not in Scrapy. Migrating. |
Hello @wRAR, |
@kanjikinsmoke we need to make the Also it would be nice to check if there are any other methods or properties that behave the same and do the same fix for them, e.g. |
Regression.
As part of my unit tests, I have a well-formed JSON file that I'm using in some tests as "bad" data (the script wants XML).
I do something like this:
This used to work (1.7.x), now (2.11.1) it asserts:
I appreciate JSON doesn't have namespaces, but it should fail gracefully, not raise an assertion.
The text was updated successfully, but these errors were encountered: