#NEWLINE# def test_addhooks_nohooks( self , testdir ) : #NEWLINE# #INDENT# testdir . makeconftest ( '\n            import sys\n            def pytest_addhooks(pluginmanager):\n                pluginmanager.addhooks(sys)\n        ' ) #NEWLINE# res = testdir . runpytest ( ) #NEWLINE# assert ( res . ret != 0 ) #NEWLINE# res . stderr . fnmatch_lines ( [ '*did not find*sys*' ] )