Skip to content

Commit

Permalink
tests: only check lineno of message logged in test module
Browse files Browse the repository at this point in the history
So that we don't have to keep adjusting these numbers.
  • Loading branch information
layday committed Sep 29, 2021
1 parent 827f567 commit ab4526d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_projectbuilder.py
Expand Up @@ -570,7 +570,7 @@ def test_log(mocker, caplog, test_flit_path):
('INFO', 'something'),
]
if sys.version_info >= (3, 8): # stacklevel
assert [(record.lineno) for record in caplog.records] == [305, 305, 338, 368, 368, 562]
assert caplog.records[-1].lineno == 562


@pytest.mark.parametrize(
Expand Down

0 comments on commit ab4526d

Please sign in to comment.