aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_namespaces.py
diff options
context:
space:
mode:
authorAlexander Duryagin <aduryagin@gmail.com>2018-08-17 17:36:20 +0300
committerAlexander Duryagin <aduryagin@gmail.com>2018-08-17 17:36:20 +0300
commitd2346c91804333b29fe63b8e1414cd764eb1ef5f (patch)
tree4ace47ba76407c2c8c6b40f580d2620584aac046 /setuptools/tests/test_namespaces.py
parentecae51daeff22edcbbab38016d118778add14d33 (diff)
downloadexternal_python_setuptools-d2346c91804333b29fe63b8e1414cd764eb1ef5f.tar.gz
external_python_setuptools-d2346c91804333b29fe63b8e1414cd764eb1ef5f.tar.bz2
external_python_setuptools-d2346c91804333b29fe63b8e1414cd764eb1ef5f.zip
xfail namespace packages tests on appveyor instead of skipping them
Diffstat (limited to 'setuptools/tests/test_namespaces.py')
-rw-r--r--setuptools/tests/test_namespaces.py24
1 files changed, 16 insertions, 8 deletions
diff --git a/setuptools/tests/test_namespaces.py b/setuptools/tests/test_namespaces.py
index 00ec75b4..52ac6a68 100644
--- a/setuptools/tests/test_namespaces.py
+++ b/setuptools/tests/test_namespaces.py
@@ -14,8 +14,10 @@ class TestNamespaces:
@pytest.mark.xfail(sys.version_info < (3, 5),
reason="Requires importlib.util.module_from_spec")
- @pytest.mark.skipif(bool(os.environ.get("APPVEYOR")),
- reason="https://github.com/pypa/setuptools/issues/851")
+ @pytest.mark.xfail(
+ os.environ.get("APPVEYOR"),
+ reason="https://github.com/pypa/setuptools/issues/851",
+ )
def test_mixed_site_and_non_site(self, tmpdir):
"""
Installing two packages sharing the same namespace, one installed
@@ -55,8 +57,10 @@ class TestNamespaces:
with test.test.paths_on_pythonpath(map(str, targets)):
subprocess.check_call(try_import)
- @pytest.mark.skipif(bool(os.environ.get("APPVEYOR")),
- reason="https://github.com/pypa/setuptools/issues/851")
+ @pytest.mark.xfail(
+ os.environ.get("APPVEYOR"),
+ reason="https://github.com/pypa/setuptools/issues/851",
+ )
def test_pkg_resources_import(self, tmpdir):
"""
Ensure that a namespace package doesn't break on import
@@ -81,8 +85,10 @@ class TestNamespaces:
with test.test.paths_on_pythonpath([str(target)]):
subprocess.check_call(try_import)
- @pytest.mark.skipif(bool(os.environ.get("APPVEYOR")),
- reason="https://github.com/pypa/setuptools/issues/851")
+ @pytest.mark.xfail(
+ os.environ.get("APPVEYOR"),
+ reason="https://github.com/pypa/setuptools/issues/851",
+ )
def test_namespace_package_installed_and_cwd(self, tmpdir):
"""
Installing a namespace packages but also having it in the current
@@ -110,8 +116,10 @@ class TestNamespaces:
with test.test.paths_on_pythonpath([str(target)]):
subprocess.check_call(pkg_resources_imp, cwd=str(pkg_A))
- @pytest.mark.skipif(bool(os.environ.get("APPVEYOR")),
- reason="https://github.com/pypa/setuptools/issues/851")
+ @pytest.mark.xfail(
+ os.environ.get("APPVEYOR"),
+ reason="https://github.com/pypa/setuptools/issues/851",
+ )
def test_packages_in_the_sampe_namespace_installed_and_cwd(self, tmpdir):
"""
Installing one namespace package and also have another in the same