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
VC6
VS7.1
VS8.0
VS9.0
bdist_wininst
os2emx
os2vacpp
WinMain.c -rw-r--r-- 447 bytes
_msi.c -rw-r--r-- 31.6 KB
_subprocess.c -rw-r--r-- 19.7 KB
_winreg.c -rw-r--r-- 60.6 KB
config.c -rw-r--r-- 4.5 KB
dl_nt.c -rw-r--r-- 4.2 KB
dllbase_nt.txt -rw-r--r-- 3.5 KB
empty.c -rw-r--r-- 137 bytes
errmap.h -rw-r--r-- 2.1 KB
errmap.mak -rw-r--r-- 95 bytes
frozen_dllmain.c -rw-r--r-- 3.9 KB
generrmap.c -rw-r--r-- 503 bytes
getpathp.c -rw-r--r-- 21.0 KB
icons.mak -rw-r--r-- 213 bytes
icons.rc -rw-r--r-- 59 bytes
import_nt.c -rw-r--r-- 2.7 KB
make_versioninfo.c -rw-r--r-- 1.2 KB
msvcrtmodule.c -rw-r--r-- 11.0 KB
py.ico -rw-r--r-- 19.3 KB
pyc.ico -rw-r--r-- 19.3 KB
pycon.ico -rw-r--r-- 19.3 KB
pyconfig.h -rw-r--r-- 20.8 KB
python.mk -rw-r--r-- 229 bytes
python_exe.rc -rw-r--r-- 49 bytes
python_nt.rc -rw-r--r-- 1.8 KB
readme.txt -rw-r--r-- 4.1 KB
testpy.py -rw-r--r-- 834 bytes
w9xpopen.c -rw-r--r-- 3.6 KB
winsound.c -rw-r--r-- 5.3 KB

readme.txt

back to top