#NEWLINE# def test_extractPausedComputationDuringVectorLoad( self ) : #NEWLINE# #INDENT# self . runtime = Runtime . getMainRuntime ( ) #NEWLINE# vdm = FORANative . VectorDataManager ( callbackScheduler , Setup . config ( ) . maxPageSizeInBytes ) #NEWLINE# context = ExecutionContext . ExecutionContext ( dataManager = vdm , allowInterpreterTracing = False ) #NEWLINE# context . evaluate ( FORA . extractImplValContainer ( FORA . eval ( 'fun() { [1,2,3].paged }' ) ) , FORANative . ImplValContainer ( FORANative . makeSymbol ( 'Call' ) ) ) #NEWLINE# pagedVec = context . getFinishedResult ( ) . asResult . result #NEWLINE# context . placeInEvaluationState ( FORANative . ImplValContainer ( ( pagedVec , FORANative . ImplValContainer ( FORANative . makeSymbol ( 'GetItem' ) ) , FORANative . ImplValContainer ( 0 ) ) ) ) #NEWLINE# vdm . unloadAllPossible ( ) #NEWLINE# context . resume ( ) #NEWLINE# self . assertTrue ( context . isVectorLoad ( ) ) #NEWLINE# computation = context . extractPausedComputation ( ) #NEWLINE# self . assertEqual ( len ( computation . frames ) , 1 )