[2.7] bpo-30759: Copy test_robotparser from master by vstinner · Pull Request #2546 · python/cpython (original) (raw)

Oh, I don't know what happened: I did remove the 2 unused imports, but I see them in the first version of my PR? Well, it doesn't matter, I just removed them :-)

I fixed the 3 reports issues.

Serhiy: "test_robotparser was rewritten in bpo-25497 (4da0fd0) by @berkerpeksag. Maybe try to cherry-pick 4da0fd0 and compare results?"

Sorry, but I don't want to try to cherry-pick such large refactoring change from Python 3 to Python 2, the cherry-pick creates a file full of conflcts. IMHO it's simpler to start with a fresh copy of the file, and then adapt it for Python 2.

I credited @berkerpeksag in my commit message.