|
1 | 1 | import subprocess |
2 | 2 | import sys |
3 | 3 |
|
| 4 | +import pytest |
| 5 | + |
4 | 6 | from setuptools._path import paths_on_pythonpath |
5 | 7 |
|
6 | 8 | from . import namespaces |
7 | 9 |
|
8 | 10 |
|
9 | 11 | class TestNamespaces: |
| 12 | + @pytest.mark.xfail(reason="pkg_resources has been removed") |
10 | 13 | def test_mixed_site_and_non_site(self, tmpdir): |
11 | 14 | """ |
12 | 15 | Installing two packages sharing the same namespace, one installed |
@@ -49,6 +52,7 @@ def test_mixed_site_and_non_site(self, tmpdir): |
49 | 52 | with paths_on_pythonpath(map(str, targets)): |
50 | 53 | subprocess.check_call(try_import) |
51 | 54 |
|
| 55 | + @pytest.mark.xfail(reason="pkg_resources has been removed") |
52 | 56 | def test_pkg_resources_import(self, tmpdir): |
53 | 57 | """ |
54 | 58 | Ensure that a namespace package doesn't break on import |
@@ -77,6 +81,7 @@ def test_pkg_resources_import(self, tmpdir): |
77 | 81 | with paths_on_pythonpath([str(target)]): |
78 | 82 | subprocess.check_call(try_import) |
79 | 83 |
|
| 84 | + @pytest.mark.xfail(reason="pkg_resources has been removed") |
80 | 85 | def test_namespace_package_installed_and_cwd(self, tmpdir): |
81 | 86 | """ |
82 | 87 | Installing a namespace packages but also having it in the current |
@@ -106,6 +111,7 @@ def test_namespace_package_installed_and_cwd(self, tmpdir): |
106 | 111 | with paths_on_pythonpath([str(target)]): |
107 | 112 | subprocess.check_call(pkg_resources_imp, cwd=str(pkg_A)) |
108 | 113 |
|
| 114 | + @pytest.mark.xfail(reason="pkg_resources has been removed") |
109 | 115 | def test_packages_in_the_same_namespace_installed_and_cwd(self, tmpdir): |
110 | 116 | """ |
111 | 117 | Installing one namespace package and also have another in the same |
|
0 commit comments