Skip to content

Commit 12ab7d8

Browse files
committed
Make test_apply_pyprojecttoml more deterministic with new version of ini2toml
1 parent 42d1b3c commit 12ab7d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ testing =
6262
jaraco.path>=3.2.0
6363
build[virtualenv]>=1.0.3
6464
filelock>=3.4.0
65-
ini2toml[lite]>=0.9
65+
ini2toml[lite]>=0.14
6666
tomli-w>=1.0.0
6767
pytest-timeout
6868
pytest-perf; \

setuptools/tests/config/test_apply_pyprojecttoml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from zipfile import ZipFile
1515

1616
import pytest
17-
from ini2toml.api import Translator
17+
from ini2toml.api import LiteTranslator
1818

1919
from packaging.metadata import Metadata
2020

@@ -46,7 +46,7 @@ def test_apply_pyproject_equivalent_to_setupcfg(url, monkeypatch, tmp_path):
4646
setupcfg_example = retrieve_file(url)
4747
pyproject_example = Path(tmp_path, "pyproject.toml")
4848
setupcfg_text = setupcfg_example.read_text(encoding="utf-8")
49-
toml_config = Translator().translate(setupcfg_text, "setup.cfg")
49+
toml_config = LiteTranslator().translate(setupcfg_text, "setup.cfg")
5050
pyproject_example.write_text(toml_config, encoding="utf-8")
5151

5252
dist_toml = pyprojecttoml.apply_configuration(makedist(tmp_path), pyproject_example)

0 commit comments

Comments
 (0)