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
_bsddb.dsp -rw-r--r-- 4.2 KB
_ctypes.dsp -rw-r--r-- 4.8 KB
_ctypes_test.dsp -rw-r--r-- 4.1 KB
_elementtree.dsp -rw-r--r-- 4.6 KB
_msi.dsp -rw-r--r-- 4.1 KB
_multiprocessing.dsp -rw-r--r-- 4.6 KB
_socket.dsp -rw-r--r-- 4.0 KB
_sqlite3.dsp -rw-r--r-- 4.9 KB
_ssl.dsp -rw-r--r-- 2.4 KB
_ssl.mak -rw-r--r-- 713 bytes
_testcapi.dsp -rw-r--r-- 4.1 KB
_tkinter.dsp -rw-r--r-- 4.3 KB
build_ssl.py -rw-r--r-- 8.2 KB
build_tkinter.py -rw-r--r-- 2.0 KB
bz2.dsp -rw-r--r-- 3.9 KB
make_versioninfo.dsp -rw-r--r-- 4.2 KB
pcbuild.dsw -rw-r--r-- 5.8 KB
pyexpat.dsp -rw-r--r-- 4.5 KB
python.dsp -rw-r--r-- 3.8 KB
pythoncore.dsp -rw-r--r-- 17.4 KB
pythonw.dsp -rw-r--r-- 3.9 KB
readme.txt -rw-r--r-- 9.1 KB
rmpyc.py -rw-r--r-- 600 bytes
rt.bat -rwxr-xr-x 1.4 KB
select.dsp -rw-r--r-- 4.1 KB
tcl852.patch -rw-r--r-- 428 bytes
unicodedata.dsp -rw-r--r-- 4.1 KB
w9xpopen.dsp -rw-r--r-- 3.5 KB
winsound.dsp -rw-r--r-- 3.9 KB

readme.txt

back to top