Skip to content

Commit 6ecdce0

Browse files
authored
[v2] Update sdist fail case (aws#9449)
1 parent 6aa3785 commit 6ecdce0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/backends/build_system/integration/test_build_system.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ def test_errors_building_venv_without_runtime_deps(self, workspace):
4848
with pytest.raises(subprocess.CalledProcessError) as e:
4949
workspace.call_build_system("system-sandbox", download_deps=False)
5050
error_text = e.value.stdout.decode()
51-
assert "No module named 'flit_core'" in error_text
51+
possible_messages = [
52+
"No module named 'flit_core'",
53+
# Recent versions of pyproject-hooks started consuming
54+
# ImportError messages and replacing it.
55+
"Cannot import 'pep517'",
56+
]
57+
assert any([msg in error_text for msg in possible_messages])
5258

5359

5460
class TestInstall(BaseArtifactTest):

0 commit comments

Comments
 (0)