#NEWLINE# def test_configure( self , testdir ) : #NEWLINE# #INDENT# config = testdir . parseconfig ( ) #NEWLINE# l = [ ] #NEWLINE# class A ( ) : #NEWLINE# #INDENT# def pytest_configure( self , config ) : #NEWLINE# #INDENT# l . append ( self ) #NEWLINE# #UNINDENT# #UNINDENT# config . pluginmanager . register ( A ( ) ) #NEWLINE# assert ( len ( l ) == 0 ) #NEWLINE# config . _do_configure ( ) #NEWLINE# assert ( len ( l ) == 1 ) #NEWLINE# config . pluginmanager . register ( A ( ) ) #NEWLINE# assert ( len ( l ) == 2 ) #NEWLINE# assert ( l [ 0 ] != l [ 1 ] ) #NEWLINE# config . _ensure_unconfigure ( ) #NEWLINE# config . pluginmanager . register ( A ( ) ) #NEWLINE# assert ( len ( l ) == 2 )