@retry_on_failure
def test_fileobject_close():
 fd = socket._fileobject(None, close=True)
 AreEqual(fd.mode, 'rb')
 if (sys.platform == 'win32'):
  AreEqual(fd.closed, True)

@ retry_on_failure def test_fileobject_close ( ) : fd = socket . _fileobject ( None , close = True ) AreEqual ( fd . mode , 'rb' ) if ( sys . platform == 'win32' ) : AreEqual ( fd . closed , True )
verify we can construct fileobjects w/ the close kw arg .