Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes
test.test_urllibnet.URLTimeoutTest Class Reference

List of all members.

Public Member Functions

def setUp
def tearDown
def testURLread

Static Public Attributes

float TIMEOUT = 30.0

Detailed Description

Definition at line 15 of file test_urllibnet.py.


Member Function Documentation

Definition at line 20 of file test_urllibnet.py.

00020 
00021     def setUp(self):
00022         socket.setdefaulttimeout(self.TIMEOUT)

Here is the caller graph for this function:

Definition at line 23 of file test_urllibnet.py.

00023 
00024     def tearDown(self):
00025         socket.setdefaulttimeout(None)

Here is the caller graph for this function:

Definition at line 26 of file test_urllibnet.py.

00026 
00027     def testURLread(self):
00028         with support.transient_internet("www.python.org"):
00029             f = urllib.request.urlopen("http://www.python.org/")
00030             x = f.read()
00031 

Here is the call graph for this function:


Member Data Documentation

Definition at line 18 of file test_urllibnet.py.


The documentation for this class was generated from the following file: