def test_terminal_summary_warnings_are_displayed(testdir):
 testdir.makeconftest("\n        def pytest_terminal_summary(terminalreporter):\n            config = terminalreporter.config\n            config.warn('C1', 'internal warning')\n    ")
 result = testdir.runpytest('-rw')
 result.stdout.fnmatch_lines(['*C1*internal warning', '*== 1 pytest-warnings in *'])

def test_terminal_summary_warnings_are_displayed ( testdir ) : testdir . makeconftest ( "\n        def pytest_terminal_summary(terminalreporter):\n            config = terminalreporter.config\n            config.warn('C1', 'internal warning')\n    " ) result = testdir . runpytest ( '-rw' ) result . stdout . fnmatch_lines ( [ '*C1*internal warning' , '*== 1 pytest-warnings in *' ] )
test that warnings emitted during pytest_terminal_summary are displayed .