#NEWLINE# def test_continuesWhenAllRootHintsFail( self ) : #NEWLINE# #INDENT# '\n        The L{root.Resolver} is eventually created, even if all of the root hint\n        lookups fail. Pending and new lookups will then fail with\n        AttributeError.\n        ' #NEWLINE# stubResolver = StubResolver ( ) #NEWLINE# deferredResolver = root . bootstrap ( stubResolver ) #NEWLINE# results = iter ( stubResolver . pendingResults ) #NEWLINE# d1 = next ( results ) #NEWLINE# for d in results : #NEWLINE# #INDENT# d . errback ( TimeoutError ( ) ) #NEWLINE# #UNINDENT# d1 . errback ( TimeoutError ( ) ) #NEWLINE# def checkHints( res ) : #NEWLINE# #INDENT# self . assertEqual ( deferredResolver . hints , [ ] ) #NEWLINE# #UNINDENT# d1 . addBoth ( checkHints ) #NEWLINE# self . addCleanup ( self . flushLoggedErrors , TimeoutError )