Commit a114112e authored by Paul Ganssle's avatar Paul Ganssle

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.
parent bd800f4c
......@@ -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")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment