#NEWLINE# def teardown( self ) : #NEWLINE# #INDENT# 'Restore state modified from the `setup` call.' #NEWLINE# nvim = self . nvim #NEWLINE# info ( 'uninstall import hook/path' ) #NEWLINE# sys . path . remove ( nvim . VIM_SPECIAL_PATH ) #NEWLINE# sys . path_hooks . remove ( self . hook ) #NEWLINE# info ( 'restore sys.stdout and sys.stderr' ) #NEWLINE# sys . stdout = self . saved_stdout #NEWLINE# sys . stderr = self . saved_stderr