diff options
author | Henry Schreiner <henryschreineriii@gmail.com> | 2020-05-25 10:49:04 -0400 |
---|---|---|
committer | Henry Schreiner <henryschreineriii@gmail.com> | 2020-05-25 12:45:27 -0400 |
commit | c17e67f53860b26d265e55ded196be8495a99077 (patch) | |
tree | 394e39440c956eac3ba17a9a8195ece155327032 /testing | |
parent | 55c4c7ca378e617a694a253e0ba304a4e0f6dd6c (diff) | |
download | setuptools-scm-c17e67f53860b26d265e55ded196be8495a99077.tar.gz |
Adding Windows + Py 2.7 test, skips
Diffstat (limited to 'testing')
-rw-r--r-- | testing/test_file_finder.py | 2 | ||||
-rw-r--r-- | testing/test_git.py | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/testing/test_file_finder.py b/testing/test_file_finder.py index a6e3d70..463d3d4 100644 --- a/testing/test_file_finder.py +++ b/testing/test_file_finder.py @@ -9,6 +9,8 @@ from setuptools_scm.integration import find_files @pytest.fixture(params=["git", "hg"]) def inwd(request, wd, monkeypatch): if request.param == "git": + if sys.platform == "win32" and sys.version_info[0] < 3: + pytest.skip("Long/short path names supported on Windows Python 2.7") try: wd("git init") except OSError: diff --git a/testing/test_git.py b/testing/test_git.py index e485fc7..e92d19a 100644 --- a/testing/test_git.py +++ b/testing/test_git.py @@ -10,6 +10,12 @@ from setuptools_scm.file_finder_git import git_find_files import warnings +skip_if_win_27 = pytest.mark.skipif( + sys.platform == "win32" and sys.version_info[0] < 3, + reason="Not supported on Windows + Python 2.7", +) + + with warnings.catch_warnings(): warnings.filterwarnings("ignore") if not has_command("git"): @@ -186,6 +192,7 @@ def test_alphanumeric_tags_match(wd): assert wd.version.startswith("0.1.dev1+g") +@skip_if_win_27 def test_git_archive_export_ignore(wd, monkeypatch): wd.write("test1.txt", "test") wd.write("test2.txt", "test") @@ -201,6 +208,7 @@ def test_git_archive_export_ignore(wd, monkeypatch): assert integration.find_files(".") == [opj(".", "test1.txt")] +@skip_if_win_27 @pytest.mark.issue(228) def test_git_archive_subdirectory(wd, monkeypatch): wd("mkdir foobar") @@ -211,6 +219,7 @@ def test_git_archive_subdirectory(wd, monkeypatch): assert integration.find_files(".") == [opj(".", "foobar", "test1.txt")] +@skip_if_win_27 @pytest.mark.issue(251) def test_git_archive_run_from_subdirectory(wd, monkeypatch): wd("mkdir foobar") |