Skip to content

Commit

Permalink
Remove obsolete toml import from the test suite
Browse files Browse the repository at this point in the history
Remove the `toml` import that is used to determine whether to run
`pyproject.toml` test.  Firstly, `toml` has been replaced by `tomli`.
Secondly, isort vendors `tomli`, so checking for its availability
does not seem to make sense.
  • Loading branch information
mgorny committed Dec 21, 2022
1 parent 3020e0b commit 45d6abd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/unit/test_isort.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import py
import pytest
import toml

import isort
from isort import api, files, sections
Expand Down Expand Up @@ -2713,7 +2712,6 @@ def test_sections_parsed_correct(tmpdir) -> None:
assert isort.code(test_input, settings_path=str(tmpdir)) == correct_output


@pytest.mark.skipif(toml is None, reason="Requires toml package to be installed.")
def test_pyproject_conf_file(tmpdir) -> None:
"""Ensure that modules for custom sections parsed as list from config file and
isort result is correct
Expand Down

0 comments on commit 45d6abd

Please sign in to comment.