Skip to content

Commit 88bc16e

Browse files
test(release): use double-quoted TOML strings in extras fixtures
The Python 3.9 regex fallback in _declared_dependencies() only extracts double-quoted requirement strings, so single-quoted fixture entries made it capture the marker version as a package name ('3-9') and miss the extra dependency, failing the core-floor job.
1 parent 2e0a677 commit 88bc16e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_release_evidence.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,8 @@ def test_release_evidence_requires_selected_extra_dependencies(tmp_path):
624624
'[project]\nname = "engraphis"\nversion = "1.2.3"\n'
625625
'dependencies = ["alpha-package>=1.0"]\n'
626626
"[project.optional-dependencies]\n"
627-
"all = ['extra-dep>=1.0; python_version >= \"3.9\"']\n"
628-
"test = ['test-dep>=0.1']\n",
627+
"all = [\"extra-dep>=1.0; python_version >= '3.9'\"]\n"
628+
"test = [\"test-dep>=0.1\"]\n",
629629
encoding="utf-8",
630630
)
631631
dist = _dist(root)
@@ -643,8 +643,8 @@ def test_release_evidence_ignores_extra_dependencies_with_inapplicable_markers(t
643643
'[project]\nname = "engraphis"\nversion = "1.2.3"\n'
644644
'dependencies = ["alpha-package>=1.0"]\n'
645645
"[project.optional-dependencies]\n"
646-
"all = ['future-dep>=1.0; python_version < \"3.9\"']\n"
647-
"test = ['legacy-dep>=0.1; python_version < \"3.9\"']\n",
646+
"all = [\"future-dep>=1.0; python_version < '3.9'\"]\n"
647+
"test = [\"legacy-dep>=0.1; python_version < '3.9'\"]\n",
648648
encoding="utf-8",
649649
)
650650
dist = _dist(root)

0 commit comments

Comments
 (0)