[Python-checkins] [python/cpython] 668489: bpo-30759: Copy test_robotparser from master (#254...

GitHub noreply at github.com
Wed Jul 5 04:00:35 EDT 2017


  Branch: refs/heads/2.7
  Home:   https://github.com/python/cpython
  Commit: 668489a6d5a5b124aea35820ca90cb5e3b2b3ecd
      https://github.com/python/cpython/commit/668489a6d5a5b124aea35820ca90cb5e3b2b3ecd
  Author: Victor Stinner <victor.stinner at gmail.com>
  Date:   2017-07-05 (Wed, 05 Jul 2017)

  Changed paths:
    M Lib/test/test_robotparser.py

  Log Message:
  -----------
  bpo-30759: Copy test_robotparser from master (#2546)

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 at gmail.com>




More information about the Python-checkins mailing list