- Original patch by John Vandenberg, modified: - Move pytest -k test exclusions into add-rpmfail-pytest-markers.patch to clarify the reason for those failures - Refine runtime Recommends from git to git-core OBS-URL: https://build.opensuse.org/request/show/690649 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools_scm?expand=0&rev=45
38 lines
1.5 KiB
Diff
38 lines
1.5 KiB
Diff
diff -ru setuptools_scm-3.2.0-orig/testing/test_regressions.py setuptools_scm-3.2.0/testing/test_regressions.py
|
|
--- setuptools_scm-3.2.0-orig/testing/test_regressions.py 2019-01-17 02:34:04.000000000 +0700
|
|
+++ setuptools_scm-3.2.0/testing/test_regressions.py 2019-03-15 13:15:33.248842438 +0700
|
|
@@ -49,6 +49,7 @@
|
|
assert get_version(root=p.strpath) == "1.0"
|
|
|
|
|
|
+@pytest.mark.rpmfail_github_connect
|
|
@pytest.mark.issue(164)
|
|
def test_pip_download(tmpdir, monkeypatch):
|
|
monkeypatch.chdir(tmpdir)
|
|
diff -ru setuptools_scm-3.2.0-orig/testing/test_setuptools_support.py setuptools_scm-3.2.0/testing/test_setuptools_support.py
|
|
--- setuptools_scm-3.2.0-orig/testing/test_setuptools_support.py 2019-01-17 02:34:04.000000000 +0700
|
|
+++ setuptools_scm-3.2.0/testing/test_setuptools_support.py 2019-03-15 13:16:43.573444176 +0700
|
|
@@ -65,12 +65,14 @@
|
|
)
|
|
|
|
|
|
+@pytest.mark.rpmfail_github_connect
|
|
def test_old_setuptools_fails(get_setuptools_packagedir):
|
|
packagedir = get_setuptools_packagedir("0.9.8")
|
|
with pytest.raises(subprocess.CalledProcessError):
|
|
check(packagedir, "0.9.8")
|
|
|
|
|
|
+@pytest.mark.rpmfail_github_connect
|
|
def test_old_setuptools_allows_with_warnings(get_setuptools_packagedir):
|
|
|
|
packagedir = get_setuptools_packagedir("0.9.8")
|
|
@@ -78,6 +80,7 @@
|
|
check(packagedir, "0.9.8", PYTHONWARNINGS="once::Warning")
|
|
|
|
|
|
+@pytest.mark.rpmfail_github_connect
|
|
def test_distlib_setuptools_works(get_setuptools_packagedir):
|
|
packagedir = get_setuptools_packagedir("12.0.1")
|
|
check(packagedir, "12.0.1")
|