'Setup of a temp file to use for testing'

def setUp(self):

    self.text = ('test_urllib:    %s\n' % self.__class__.__name__)
    FILE = file(test_support.TESTFN, 'wb')
    try:
        FILE.write(self.text)
    finally:
        FILE.close()
    self.pathname = test_support.TESTFN
    self.returned_obj = urllib.urlopen(('file:%s' % self.pathname))
