Staging
v0.5.1
https://github.com/python/cpython
Revision 668489a6d5a5b124aea35820ca90cb5e3b2b3ecd authored by Victor Stinner on 05 July 2017, 08:00:33 UTC, committed by GitHub on 05 July 2017, 08:00:33 UTC
Copy Lib/test/test_robotparser.py from master to 2.7 and adapt it for
Python 2.7:

* Replace urllib.robotparser with robotparser
* Adjust HTTPServer import
* Replace io.StringIO with StringIO.StringIO
* Remove tests on crawl_delay() and request_rate() since these
  methods were added to Python 3
* Remove subTest()
* Add test_main() which explicitly lists all test cases

Patch based on the commit 4da0fd06ce49132d5c2e0525c4a31f807690a9ed
written by Berker Peksag.

Co-Authored-By: Berker Peksag <berker.peksag@gmail.com>
1 parent 3050987
History
Tip revision: 668489a6d5a5b124aea35820ca90cb5e3b2b3ecd authored by Victor Stinner on 05 July 2017, 08:00:33 UTC
bpo-30759: Copy test_robotparser from master (#2546)
Tip revision: 668489a
File Mode Size
c-api
data
distributing
distutils
extending
faq
howto
includes
install
installing
library
reference
tools
tutorial
using
whatsnew
Makefile -rw-r--r-- 6.1 KB
README.txt -rw-r--r-- 3.9 KB
about.rst -rw-r--r-- 1.5 KB
bugs.rst -rw-r--r-- 4.0 KB
conf.py -rw-r--r-- 5.7 KB
contents.rst -rw-r--r-- 538 bytes
copyright.rst -rw-r--r-- 451 bytes
glossary.rst -rw-r--r-- 35.8 KB
license.rst -rw-r--r-- 44.1 KB
make.bat -rw-r--r-- 3.6 KB

README.txt

back to top