From fd71177d18bd025e87e14322adf8a5abb8a02061 Mon Sep 17 00:00:00 2001 From: Benjy Weinberger Date: Tue, 14 Sep 2021 08:31:15 -0700 Subject: [PATCH] Fix setup.py path in test. (#12881) The path is supposed to be relative to the BUILD file, but was specified relative to the buildroot. This test passed because src/python/foo/src/python/foo/setup.py becomes foo/setup.py after stripping source roots (because src/python/foo/src/python/ is recognized as a source root). But that was still a bad example for any readers. [ci skip-rust] [ci skip-build-wheels] --- src/python/pants/backend/python/goals/setup_py_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/pants/backend/python/goals/setup_py_test.py b/src/python/pants/backend/python/goals/setup_py_test.py index e3e745f1f0b..f20c40d5d9c 100644 --- a/src/python/pants/backend/python/goals/setup_py_test.py +++ b/src/python/pants/backend/python/goals/setup_py_test.py @@ -163,7 +163,7 @@ def test_use_existing_setup_script(chroot_rule_runner) -> None: ':foo', ], provides=setup_py( - setup_script='src/python/foo/setup.py', + setup_script='setup.py', name='foo', version='1.2.3' ) )