You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/isort/files/isort-4.3.21_p1-tests.patch

37 lines
1.3 KiB

diff --git a/test_isort.py b/test_isort.py
index 9d9297c..725b1e1 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -1539,6 +1539,7 @@ def test_custom_sections():
"import p24.shared.media_wiki_syntax as syntax\n")
+@pytest.mark.skip("Not going to pull in Django for a couple of tests")
def test_glob_known():
"""Ensure that most specific placement control match wins"""
test_input = ("import os\n"
@@ -2599,6 +2600,7 @@ def test_new_lines_are_preserved():
os.remove(n_newline.name)
+@pytest.mark.skip("Not going to pull in Django for a couple of tests")
def test_requirements_finder(tmpdir):
subdir = tmpdir.mkdir('subdir').join("lol.txt")
subdir.write("flask")
@@ -2675,6 +2677,7 @@ deal = {editable = true, git = "https://github.com/orsinium/deal.git"}
"""
+@pytest.mark.skip("Not going to pull in Django for a couple of tests")
def test_pipfile_finder(tmpdir):
pipfile = tmpdir.join('Pipfile')
pipfile.write(PIPFILE)
@@ -2979,6 +2982,7 @@ def test_skip_paths_issue_938(tmpdir):
assert b'skipped 1' in results.lower()
+@pytest.mark.skipif(sys.version_info[0] == 2, reason="Broken on Python 2")
def test_standard_library_deprecates_user_issue_778():
test_input = ('import os\n'
'\n'