aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests
diff options
context:
space:
mode:
authorPaul Ganssle <paul@ganssle.io>2019-01-27 12:16:14 -0500
committerPaul Ganssle <paul@ganssle.io>2019-02-03 12:25:05 -0500
commita114112ea5e6df87a826e0fa2927cffd2472aec1 (patch)
tree488541c0c3c1ae7fe8b2ebea8ac4fd5f81379ca7 /setuptools/tests
parentbd800f4c793fdcff2347a263c39c4256107b417f (diff)
downloadexternal_python_setuptools-a114112ea5e6df87a826e0fa2927cffd2472aec1.tar.gz
external_python_setuptools-a114112ea5e6df87a826e0fa2927cffd2472aec1.tar.bz2
external_python_setuptools-a114112ea5e6df87a826e0fa2927cffd2472aec1.zip
Add failing test suite for build_meta_legacy
This runs all build_meta tests, plus a test that it is possible to import from the directory containing `setup.py` when using the build_meta_legacy backend.
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_build_meta.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py
index 8222b8a2..5d97ebce 100644
--- a/setuptools/tests/test_build_meta.py
+++ b/setuptools/tests/test_build_meta.py
@@ -256,3 +256,16 @@ class TestBuildMetaBackend:
build_backend = self.get_build_backend()
with pytest.raises(ImportError):
build_backend.build_sdist("temp")
+
+
+@pytest.mark.xfail
+class TestBuildMetaLegacyBackend(TestBuildMetaBackend):
+ backend_name = 'setuptools.build_meta_legacy'
+
+ # build_meta_legacy-specific tests
+ def test_build_sdist_relative_path_import(self, tmpdir_cwd):
+ # This must fail in build_meta, but must pass in build_meta_legacy
+ build_files(self._relative_path_import_files)
+
+ build_backend = self.get_build_backend()
+ build_backend.build_sdist("temp")