From 80bfea74c10dec30a0fa64e1379b80c897b060a9 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Tue, 13 Jul 2021 11:23:09 +0100 Subject: Support TOML v1.0.0 syntax in `pyproject.toml` (#1186) * Support TOML v1.0.0 syntax in `pyproject.toml` fixes #1180 Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> * fix toml meta test * use pytest.mark.parametrize to narrow test failure * Update tests/test_config.py Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> --- tests/test_testing.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_testing.py') diff --git a/tests/test_testing.py b/tests/test_testing.py index 7219ff0b..4699799e 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -347,10 +347,10 @@ def _same_python_executable(e1, e2): def test_without_module(): - toml1 = tomlconfig.toml - with without_module(tomlconfig, 'toml'): - toml2 = tomlconfig.toml - toml3 = tomlconfig.toml + toml1 = tomlconfig.tomli + with without_module(tomlconfig, 'tomli'): + toml2 = tomlconfig.tomli + toml3 = tomlconfig.tomli assert toml1 is toml3 is not None assert toml2 is None -- cgit v1.2.1