Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_robotparser.py @ 47201:9c930a32cebb
#2621 rename test.test_support to test.support
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Tue, 20 May 2008 21:35:26 +0000 |
| parents | 4a07a288f5c4 |
| children | 5a416a6417d3 |
line wrap: on
line diff
--- a/Lib/test/test_robotparser.py Tue May 20 07:26:11 2008 +0000 +++ b/Lib/test/test_robotparser.py Tue May 20 21:35:26 2008 +0000 @@ -1,6 +1,6 @@ import unittest, robotparser import io -from test import test_support +from test import support class RobotTestCase(unittest.TestCase): def __init__(self, index, parser, url, good, agent): @@ -137,7 +137,7 @@ class TestCase(unittest.TestCase): def runTest(self): - test_support.requires('network') + support.requires('network') # whole site is password-protected. url = 'http://mueblesmoraleda.com' parser = robotparser.RobotFileParser() @@ -146,9 +146,9 @@ self.assertEqual(parser.can_fetch("*", url+"/robots.txt"), False) def test_main(): - test_support.run_unittest(tests) + support.run_unittest(tests) TestCase().run() if __name__=='__main__': - test_support.Verbose = 1 + support.Verbose = 1 test_main()
