Skip to content

Commit

Permalink
tests: skip toml vs. tomli test on 3.11+
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii authored and FFY00 committed Oct 27, 2022
1 parent dd5ec7e commit 3b36b6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_projectbuilder.py
Expand Up @@ -576,6 +576,7 @@ def mock_tomli_not_available(mocker):
importlib.reload(build)


@pytest.mark.skipif(sys.version_info >= (3, 11), reason='No need to test old toml support on 3.11+')
def test_toml_instead_of_tomli(mocker, mock_tomli_not_available, tmp_dir, package_test_flit):
mocker.patch('pep517.wrappers.Pep517HookCaller', autospec=True)

Expand Down Expand Up @@ -609,7 +610,7 @@ def test_log(mocker, caplog, package_test_flit):
('INFO', 'something'),
]
if sys.version_info >= (3, 8): # stacklevel
assert caplog.records[-1].lineno == 601
assert caplog.records[-1].lineno == 602


@pytest.mark.parametrize(
Expand Down

0 comments on commit 3b36b6e

Please sign in to comment.