fixed caplog.records call in test_print_bookmark

This commit is contained in:
Paul 2016-08-23 10:50:15 -05:00
parent 87ed7784ad
commit 9f66cfbd00

View File

@ -284,7 +284,7 @@ def test_print_bookmark(capsys, caplog, setup):
bdb.print_bookmark(1)
out, err = capsys.readouterr()
for record in caplog.records:
for record in caplog.records():
assert record.levelname == "ERROR"
assert record.getMessage() == "No matching index"
assert (out, err) == ('', '')