]> granicus.if.org Git - python/commit
test_warnings: catch stderr and check warning
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 26 May 2016 13:21:25 +0000 (15:21 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 26 May 2016 13:21:25 +0000 (15:21 +0200)
commit0025eb145fb4e66c9faad696a0e1033d0a1c3375
treec7608bc913ee1b1d9ab2c944afb0bf3286cc0e83
parent43593a1892b73754e509713799a043ac756ae1e1
test_warnings: catch stderr and check warning

Check the user warning in test_error_after_default() to not pollute the output,
and check the warning logged into stderr.
Lib/test/test_warnings/__init__.py