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
Raw File
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
.hgignore
.gdb_history
.purify
.svn/
^.idea/
.DS_Store
Makefile$
Makefile.pre$
TAGS$
autom4te.cache$
build/
buildno$
config.cache
config.log
config.status
config.status.lineno
db_home
platform$
pyconfig.h$
python$
python.bat$
python.exe$
reflog.txt$
tags$
Lib/plat-mac/errors.rsrc.df.rsrc
Misc/python.pc
Modules/Setup$
Modules/Setup.config
Modules/Setup.local
Modules/config.c
Modules/ld_so_aix$
Parser/pgen$
Parser/pgen.stamp$
^lcov-report/
^core
^python-gdb.py
^pybuilddir.txt

syntax: glob
python.exe-gdb.py
libpython*.a
libpython*.so*
*.swp
*.o
*.pyc
*.pyo
*.pyd
*.cover
*~
*.gc??
*.profclang?
*.profraw
*.dyn
Lib/distutils/command/*.pdb
Lib/lib2to3/*.pickle
Lib/test/data/*
Misc/*.wpu
PC/python_nt*.h
PC/pythonnt_rc*.h
PC/*/*.exe
PC/*/*.exp
PC/*/*.lib
PC/*/*.bsc
PC/*/*.dll
PC/*/*.pdb
PC/*/*.user
PC/*/*.ncb
PC/*/*.suo
PC/*/Win32-temp-*
PC/*/x64-temp-*
PC/*/amd64
PCbuild/*.user
PCbuild/*.suo
PCbuild/*.*sdf
PCbuild/*-pgi
PCbuild/*-pgo
PCbuild/.vs
PCbuild/*.dll
PCbuild/*.exp
PCbuild/*.exe
PCbuild/*.ilk
PCbuild/*.lib
PCbuild/*.pdb
PCbuild/amd64
PCbuild/obj
*.gcda
*.gcno
*.gcov
coverage.info
.coverage
coverage/
externals/
htmlcov/
back to top