Skip to content

Commit

Permalink
Add failing test suite for build_meta_legacy
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pganssle committed Feb 3, 2019
1 parent bd800f4 commit a114112
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions setuptools/tests/test_build_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,16 @@ def test_build_sdist_relative_path_import(self, tmpdir_cwd):
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")

0 comments on commit a114112

Please sign in to comment.