MCPcopy Index your code
hub / github.com/python/cpython / setUpClass

Method setUpClass

Lib/test/test_robotparser.py:477–481  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

475
476 @classmethod
477 def setUpClass(cls):
478 support.requires('network')
479 with socket_helper.transient_internet(cls.base_url):
480 cls.parser = urllib.robotparser.RobotFileParser(cls.robots_txt)
481 cls.parser.read()
482
483 def url(self, path):
484 return '{}{}{}'.format(

Callers

nothing calls this directly

Calls 2

requiresMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected