Skip to content

Commit fee7946

Browse files
committed
Mark namespace tests as xfail. Support for pkg_resources-style namespaces is dropped.
1 parent 9d9007c commit fee7946

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

setuptools/tests/test_develop.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def install_develop(src_dir, target):
6262
with paths_on_pythonpath([str(target)]):
6363
subprocess.check_call(develop_cmd)
6464

65+
@pytest.mark.xfail(reason="pkg_resources has been removed")
6566
@pytest.mark.skipif(
6667
bool(os.environ.get("APPVEYOR")),
6768
reason="https://github.com/pypa/setuptools/issues/851",

setuptools/tests/test_namespaces.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import subprocess
22
import sys
33

4+
import pytest
5+
46
from setuptools._path import paths_on_pythonpath
57

68
from . import namespaces
79

810

911
class TestNamespaces:
12+
@pytest.mark.xfail(reason="pkg_resources has been removed")
1013
def test_mixed_site_and_non_site(self, tmpdir):
1114
"""
1215
Installing two packages sharing the same namespace, one installed
@@ -49,6 +52,7 @@ def test_mixed_site_and_non_site(self, tmpdir):
4952
with paths_on_pythonpath(map(str, targets)):
5053
subprocess.check_call(try_import)
5154

55+
@pytest.mark.xfail(reason="pkg_resources has been removed")
5256
def test_pkg_resources_import(self, tmpdir):
5357
"""
5458
Ensure that a namespace package doesn't break on import
@@ -77,6 +81,7 @@ def test_pkg_resources_import(self, tmpdir):
7781
with paths_on_pythonpath([str(target)]):
7882
subprocess.check_call(try_import)
7983

84+
@pytest.mark.xfail(reason="pkg_resources has been removed")
8085
def test_namespace_package_installed_and_cwd(self, tmpdir):
8186
"""
8287
Installing a namespace packages but also having it in the current
@@ -106,6 +111,7 @@ def test_namespace_package_installed_and_cwd(self, tmpdir):
106111
with paths_on_pythonpath([str(target)]):
107112
subprocess.check_call(pkg_resources_imp, cwd=str(pkg_A))
108113

114+
@pytest.mark.xfail(reason="pkg_resources has been removed")
109115
def test_packages_in_the_same_namespace_installed_and_cwd(self, tmpdir):
110116
"""
111117
Installing one namespace package and also have another in the same

0 commit comments

Comments
 (0)