Skip to content

Commit 3b36b6e

Browse files
henryiiiFFY00
authored andcommitted
tests: skip toml vs. tomli test on 3.11+
Signed-off-by: Henry Schreiner <[email protected]>
1 parent dd5ec7e commit 3b36b6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_projectbuilder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ def mock_tomli_not_available(mocker):
576576
importlib.reload(build)
577577

578578

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

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

614615

615616
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)