{ "instance_id": "CPython_PEP-750_Template-Strings_PR-132662", "project": "cpython", "language": "python", "requirement_doc": "https://peps.python.org/pep-0750/", "requirement_doc_title": "PEP 750 \u2014 Template Strings", "pr_link": "https://github.com/python/cpython/pull/132662", "pr_number": 132662, "merge_commit": "60202609a2c2d0971aadfa4729ba30b50e89c6ea", "base_commit": "5ea9010e8910cb97555c3aef4ed95cca93a74aab", "base_commit_note": "PR-132662 squash-merged 2025-04-30; base_commit is the squash-merge parent.", "test_level": "system", "fail_to_pass": [ "test.test_tstring.TestTString.test_string_representation", "test.test_tstring.TestTString.test_interpolation_basics", "test.test_tstring.TestTString.test_format_specifiers", "test.test_tstring.TestTString.test_conversions", "test.test_tstring.TestTString.test_debug_specifier", "test.test_tstring.TestTString.test_raw_tstrings", "test.test_tstring.TestTString.test_template_concatenation", "test.test_tstring.TestTString.test_nested_templates", "test.test_tstring.TestTString.test_syntax_errors", "test.test_tstring.TestTString.test_runtime_errors", "test.test_tstring.TestTString.test_literal_concatenation", "test.test_tstring.TestTString.test_triple_quoted", "test.test_string.test_templatelib.TestTemplate.test_common", "test.test_string.test_templatelib.TestTemplate.test_basic_creation", "test.test_string.test_templatelib.TestTemplate.test_creation_interleaving", "test.test_string.test_templatelib.TestTemplate.test_template_values", "test.test_string.test_templatelib.TestTemplate.test_pickle_template", "test.test_string.test_templatelib.TestTemplate.test_pickle_interpolation", "test.test_ast.test_ast.AST_Tests.test_tstring", "test.test_unparse.UnparseTestCase.test_tstrings" ], "pass_to_pass": [ "test.test_int.IntTestCases.test_basic", "test.test_int.IntTestCases.test_invalid_signs", "test.test_int.IntTestCases.test_unicode", "test.test_int.IntTestCases.test_underscores", "test.test_int.IntTestCases.test_small_ints", "test.test_int.IntTestCases.test_no_args", "test.test_int.IntTestCases.test_keyword_args", "test.test_int.IntTestCases.test_int_base_limits", "test.test_float.GeneralFloatCases.test_float", "test.test_float.GeneralFloatCases.test_noargs", "test.test_float.GeneralFloatCases.test_underscores", "test.test_float.GeneralFloatCases.test_non_numeric_input_types", "test.test_float.GeneralFloatCases.test_float_memoryview", "test.test_float.GeneralFloatCases.test_error_message", "test.test_calendar.OutputTestCase.test_output", "test.test_calendar.OutputTestCase.test_output_textcalendar", "test.test_calendar.OutputTestCase.test_output_htmlcalendar_encoding_ascii", "test.test_calendar.OutputTestCase.test_output_htmlcalendar_encoding_utf8", "test.test_calendar.OutputTestCase.test_output_htmlcalendar_encoding_default", "test.test_calendar.OutputTestCase.test_yeardatescalendar", "test.test_calendar.OutputTestCase.test_yeardayscalendar", "test.test_calendar.OutputTestCase.test_formatweekheader_short", "test.test_set.TestSet.test_init", "test.test_set.TestSet.test_constructor_identity", "test.test_set.TestSet.test_set_literal", "test.test_set.TestSet.test_set_literal_insertion_order", "test.test_set.TestSet.test_set_literal_evaluation_order", "test.test_set.TestSet.test_hash", "test.test_list.ListTest.test_basic", "test.test_list.ListTest.test_keyword_args", "test.test_list.ListTest.test_keywords_in_subclass", "test.test_list.ListTest.test_truth", "test.test_list.ListTest.test_identity", "test.test_list.ListTest.test_len", "test.test_dict.DictTest.test_invalid_keyword_arguments", "test.test_dict.DictTest.test_constructor", "test.test_dict.DictTest.test_literal_constructor", "test.test_dict.DictTest.test_merge_operator", "test.test_dict.DictTest.test_bool", "test.test_dict.DictTest.test_keys", "test.test_tokenize.CTokenizeTest.test_string", "test.test_tokenize.CTokenizeTest.test_function", "test.test_tokenize.CTokenizeTest.test_unicode", "test.test_tokenize.CTokenizeTest.test_invalid_syntax", "test.test_tokenize.GenerateTokensTest.test_function", "test.test_tokenize.GenerateTokensTest.test_int", "test.test_tokenize.GenerateTokensTest.test_non_ascii_identifiers", "test.test_tokenize.GenerateTokensTest.test_multiline_non_ascii_fstring", "test.test_tokenize.GenerateTokensTest.test_underscore_literals", "test.test_tokenize.TestTokenize.test_exact_type" ], "solution_patch_sha256": "049b30c6560fe116f9a5263352e2483b95ded15093a61b3267549d6d82d60df7", "eval_tests_patch_sha256": "e7673a389e6bc912ed64879d79c791274520a4fe756e6fa5cd3d9f34717264cc", "omitted_patch_sha256": "ba3d7b4c6d551590b692908bcae8a61eea8b5677db252df5416b358e0e948d68", "eval_tests_patch_notes": "NEW Lib/test/test_tstring.py + NEW Lib/test/test_string/test_templatelib.py + test_string package conversion (test_string.py -> test_string/__init__.py + _support.py + test_string.py); edits to test_ast/test_fstring/test_grammar/test_syntax/test_unparse/test_ast snippets to recognize t-string syntax.", "omitted_patch_notes": "Doc/library/token.rst, Doc/whatsnew/3.14.rst, Misc/NEWS entry, .github/CODEOWNERS, Programs/test_frozenmain.h (regenerated frozen module), PCbuild project files (Windows build), Tools/c-analyzer/TODO.", "fixture_taint_summary": "20 F2P: 12 from NEW Lib/test/test_tstring.py + 6 from NEW Lib/test/test_string/test_templatelib.py (both NEW files contain t'...' literals at parse time, plus templatelib import of the new string.templatelib module \u2192 uniform module-import SyntaxError/ModuleNotFoundError at pre-state, \u00a77 acceptable) + 2 new-method additions test_ast.AST_Tests.test_tstring and test_unparse.UnparseTestCase.test_tstrings (both their test files modified by eval_tests.patch to add t-string literals at module level \u2192 pre-state SyntaxError on file import, ERROR uniform across the new methods).", "triage": { "fail_to_pass": { "test.test_tstring.TestTString.test_string_representation": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tstring.TestTString.test_string_representation", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_tstring.TestTString.test_interpolation_basics": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tstring.TestTString.test_interpolation_basics", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_tstring.TestTString.test_format_specifiers": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tstring.TestTString.test_format_specifiers", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_tstring.TestTString.test_conversions": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tstring.TestTString.test_conversions", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_tstring.TestTString.test_debug_specifier": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tstring.TestTString.test_debug_specifier", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_tstring.TestTString.test_raw_tstrings": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tstring.TestTString.test_raw_tstrings", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_tstring.TestTString.test_template_concatenation": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tstring.TestTString.test_template_concatenation", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_tstring.TestTString.test_nested_templates": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tstring.TestTString.test_nested_templates", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_tstring.TestTString.test_syntax_errors": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tstring.TestTString.test_syntax_errors", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_tstring.TestTString.test_runtime_errors": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tstring.TestTString.test_runtime_errors", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_tstring.TestTString.test_literal_concatenation": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tstring.TestTString.test_literal_concatenation", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_tstring.TestTString.test_triple_quoted": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tstring.TestTString.test_triple_quoted", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_string.test_templatelib.TestTemplate.test_common": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_string.test_templatelib.TestTemplate.test_common", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_string.test_templatelib.TestTemplate.test_basic_creation": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_string.test_templatelib.TestTemplate.test_basic_creation", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_string.test_templatelib.TestTemplate.test_creation_interleaving": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_string.test_templatelib.TestTemplate.test_creation_interleaving", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_string.test_templatelib.TestTemplate.test_template_values": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_string.test_templatelib.TestTemplate.test_template_values", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_string.test_templatelib.TestTemplate.test_pickle_template": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_string.test_templatelib.TestTemplate.test_pickle_template", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_string.test_templatelib.TestTemplate.test_pickle_interpolation": { "system_reason": "New test from NEW PEP-750 test file; exercises t-string syntax / templatelib via public API.", "public_surface": "t'...' syntax / string.templatelib.Template + Interpolation public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_string.test_templatelib.TestTemplate.test_pickle_interpolation", "fixture_taint_checked": true, "fixture_taint_note": "test_tstring.py and test_string/test_templatelib.py both contain t'...' literals at parse time (and the latter imports string.templatelib which is new). Whole-module ERROR at pre-state is uniform across selectors (acceptable \u00a77)." }, "test.test_ast.test_ast.AST_Tests.test_tstring": { "system_reason": "New test method added by PR; exercises t-string AST construction / unparsing via public API.", "public_surface": "ast.parse/ast.unparse \u2014 public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_ast.test_ast.AST_Tests.test_tstring", "fixture_taint_checked": true, "fixture_taint_note": "Method itself is new at merge. Modified test file has t-string literals at module body added by eval_tests.patch, so pre-state import yields SyntaxError before unittest can load any method \u2014 uniform ERROR across the file's selectors (\u00a77 acceptable)." }, "test.test_unparse.UnparseTestCase.test_tstrings": { "system_reason": "New test method added by PR; exercises t-string AST construction / unparsing via public API.", "public_surface": "ast.parse/ast.unparse \u2014 public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_unparse.UnparseTestCase.test_tstrings", "fixture_taint_checked": true, "fixture_taint_note": "Method itself is new at merge. Modified test file has t-string literals at module body added by eval_tests.patch, so pre-state import yields SyntaxError before unittest can load any method \u2014 uniform ERROR across the file's selectors (\u00a77 acceptable)." } }, "pass_to_pass": { "test.test_int.IntTestCases.test_basic": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_int.IntTestCases.test_basic", "fixture_taint_checked": true }, "test.test_int.IntTestCases.test_invalid_signs": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_int.IntTestCases.test_invalid_signs", "fixture_taint_checked": true }, "test.test_int.IntTestCases.test_unicode": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_int.IntTestCases.test_unicode", "fixture_taint_checked": true }, "test.test_int.IntTestCases.test_underscores": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_int.IntTestCases.test_underscores", "fixture_taint_checked": true }, "test.test_int.IntTestCases.test_small_ints": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_int.IntTestCases.test_small_ints", "fixture_taint_checked": true }, "test.test_int.IntTestCases.test_no_args": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_int.IntTestCases.test_no_args", "fixture_taint_checked": true }, "test.test_int.IntTestCases.test_keyword_args": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_int.IntTestCases.test_keyword_args", "fixture_taint_checked": true }, "test.test_int.IntTestCases.test_int_base_limits": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_int.IntTestCases.test_int_base_limits", "fixture_taint_checked": true }, "test.test_float.GeneralFloatCases.test_float": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_float.GeneralFloatCases.test_float", "fixture_taint_checked": true }, "test.test_float.GeneralFloatCases.test_noargs": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_float.GeneralFloatCases.test_noargs", "fixture_taint_checked": true }, "test.test_float.GeneralFloatCases.test_underscores": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_float.GeneralFloatCases.test_underscores", "fixture_taint_checked": true }, "test.test_float.GeneralFloatCases.test_non_numeric_input_types": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_float.GeneralFloatCases.test_non_numeric_input_types", "fixture_taint_checked": true }, "test.test_float.GeneralFloatCases.test_float_memoryview": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_float.GeneralFloatCases.test_float_memoryview", "fixture_taint_checked": true }, "test.test_float.GeneralFloatCases.test_error_message": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_float.GeneralFloatCases.test_error_message", "fixture_taint_checked": true }, "test.test_calendar.OutputTestCase.test_output": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_calendar.OutputTestCase.test_output", "fixture_taint_checked": true }, "test.test_calendar.OutputTestCase.test_output_textcalendar": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_calendar.OutputTestCase.test_output_textcalendar", "fixture_taint_checked": true }, "test.test_calendar.OutputTestCase.test_output_htmlcalendar_encoding_ascii": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_calendar.OutputTestCase.test_output_htmlcalendar_encoding_ascii", "fixture_taint_checked": true }, "test.test_calendar.OutputTestCase.test_output_htmlcalendar_encoding_utf8": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_calendar.OutputTestCase.test_output_htmlcalendar_encoding_utf8", "fixture_taint_checked": true }, "test.test_calendar.OutputTestCase.test_output_htmlcalendar_encoding_default": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_calendar.OutputTestCase.test_output_htmlcalendar_encoding_default", "fixture_taint_checked": true }, "test.test_calendar.OutputTestCase.test_yeardatescalendar": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_calendar.OutputTestCase.test_yeardatescalendar", "fixture_taint_checked": true }, "test.test_calendar.OutputTestCase.test_yeardayscalendar": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_calendar.OutputTestCase.test_yeardayscalendar", "fixture_taint_checked": true }, "test.test_calendar.OutputTestCase.test_formatweekheader_short": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_calendar.OutputTestCase.test_formatweekheader_short", "fixture_taint_checked": true }, "test.test_set.TestSet.test_init": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_set.TestSet.test_init", "fixture_taint_checked": true }, "test.test_set.TestSet.test_constructor_identity": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_set.TestSet.test_constructor_identity", "fixture_taint_checked": true }, "test.test_set.TestSet.test_set_literal": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_set.TestSet.test_set_literal", "fixture_taint_checked": true }, "test.test_set.TestSet.test_set_literal_insertion_order": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_set.TestSet.test_set_literal_insertion_order", "fixture_taint_checked": true }, "test.test_set.TestSet.test_set_literal_evaluation_order": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_set.TestSet.test_set_literal_evaluation_order", "fixture_taint_checked": true }, "test.test_set.TestSet.test_hash": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_set.TestSet.test_hash", "fixture_taint_checked": true }, "test.test_list.ListTest.test_basic": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_list.ListTest.test_basic", "fixture_taint_checked": true }, "test.test_list.ListTest.test_keyword_args": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_list.ListTest.test_keyword_args", "fixture_taint_checked": true }, "test.test_list.ListTest.test_keywords_in_subclass": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_list.ListTest.test_keywords_in_subclass", "fixture_taint_checked": true }, "test.test_list.ListTest.test_truth": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_list.ListTest.test_truth", "fixture_taint_checked": true }, "test.test_list.ListTest.test_identity": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_list.ListTest.test_identity", "fixture_taint_checked": true }, "test.test_list.ListTest.test_len": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_list.ListTest.test_len", "fixture_taint_checked": true }, "test.test_dict.DictTest.test_invalid_keyword_arguments": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_dict.DictTest.test_invalid_keyword_arguments", "fixture_taint_checked": true }, "test.test_dict.DictTest.test_constructor": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_dict.DictTest.test_constructor", "fixture_taint_checked": true }, "test.test_dict.DictTest.test_literal_constructor": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_dict.DictTest.test_literal_constructor", "fixture_taint_checked": true }, "test.test_dict.DictTest.test_merge_operator": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_dict.DictTest.test_merge_operator", "fixture_taint_checked": true }, "test.test_dict.DictTest.test_bool": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_dict.DictTest.test_bool", "fixture_taint_checked": true }, "test.test_dict.DictTest.test_keys": { "system_reason": "Pre-existing test. NOT modified by this PR.", "public_surface": "public stdlib API", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_dict.DictTest.test_keys", "fixture_taint_checked": true }, "test.test_tokenize.CTokenizeTest.test_string": { "system_reason": "Pre-existing tokenizer regression test. NOT modified by this PR.", "public_surface": "public tokenize / C tokenizer behavior for existing string tokens", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tokenize.CTokenizeTest.test_string", "fixture_taint_checked": true, "no_modification_clause": "PEP 750 adds template-string support but does not require changing existing tokenizer behavior for non-template string literals." }, "test.test_tokenize.CTokenizeTest.test_function": { "system_reason": "Pre-existing tokenizer regression test. NOT modified by this PR.", "public_surface": "public tokenize / C tokenizer behavior for function source", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tokenize.CTokenizeTest.test_function", "fixture_taint_checked": true, "no_modification_clause": "PEP 750 adds template-string support but does not require changing existing tokenizer behavior for ordinary function source." }, "test.test_tokenize.CTokenizeTest.test_unicode": { "system_reason": "Pre-existing tokenizer regression test. NOT modified by this PR.", "public_surface": "public tokenize / C tokenizer behavior for Unicode source", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tokenize.CTokenizeTest.test_unicode", "fixture_taint_checked": true, "no_modification_clause": "PEP 750 adds template-string support but does not require changing existing Unicode tokenization behavior." }, "test.test_tokenize.CTokenizeTest.test_invalid_syntax": { "system_reason": "Pre-existing tokenizer regression test. NOT modified by this PR.", "public_surface": "public tokenize / C tokenizer diagnostics for existing invalid syntax", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tokenize.CTokenizeTest.test_invalid_syntax", "fixture_taint_checked": true, "no_modification_clause": "PEP 750 adds new template-string syntax but does not require changing existing invalid-syntax tokenization diagnostics." }, "test.test_tokenize.GenerateTokensTest.test_function": { "system_reason": "Pre-existing tokenizer regression test. NOT modified by this PR.", "public_surface": "public tokenize.generate_tokens behavior for ordinary function source", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tokenize.GenerateTokensTest.test_function", "fixture_taint_checked": true, "no_modification_clause": "PEP 750 adds template-string tokens but does not require changing tokenize.generate_tokens output for ordinary function source." }, "test.test_tokenize.GenerateTokensTest.test_int": { "system_reason": "Pre-existing tokenizer regression test. NOT modified by this PR.", "public_surface": "public tokenize.generate_tokens behavior for integer literals", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tokenize.GenerateTokensTest.test_int", "fixture_taint_checked": true, "no_modification_clause": "PEP 750 adds template-string tokens but does not require changing tokenization of existing integer literals." }, "test.test_tokenize.GenerateTokensTest.test_non_ascii_identifiers": { "system_reason": "Pre-existing tokenizer regression test. NOT modified by this PR.", "public_surface": "public tokenize.generate_tokens behavior for non-ASCII identifiers", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tokenize.GenerateTokensTest.test_non_ascii_identifiers", "fixture_taint_checked": true, "no_modification_clause": "PEP 750 adds template-string tokens but does not require changing non-ASCII identifier tokenization." }, "test.test_tokenize.GenerateTokensTest.test_multiline_non_ascii_fstring": { "system_reason": "Pre-existing tokenizer regression test. NOT modified by this PR.", "public_surface": "public tokenize.generate_tokens behavior for existing multiline f-strings", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tokenize.GenerateTokensTest.test_multiline_non_ascii_fstring", "fixture_taint_checked": true, "no_modification_clause": "PEP 750 adds template strings adjacent to f-strings but does not require changing existing f-string tokenization." }, "test.test_tokenize.GenerateTokensTest.test_underscore_literals": { "system_reason": "Pre-existing tokenizer regression test. NOT modified by this PR.", "public_surface": "public tokenize.generate_tokens behavior for underscore numeric literals", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tokenize.GenerateTokensTest.test_underscore_literals", "fixture_taint_checked": true, "no_modification_clause": "PEP 750 adds template-string tokens but does not require changing underscore numeric literal tokenization." }, "test.test_tokenize.TestTokenize.test_exact_type": { "system_reason": "Pre-existing tokenizer regression test. NOT modified by this PR.", "public_surface": "public tokenize token exact_type behavior", "internal_symbol_check": [], "uses_allowlisted_private": [], "runner_surface": "./python -m unittest -v test.test_tokenize.TestTokenize.test_exact_type", "fixture_taint_checked": true, "no_modification_clause": "PEP 750 adds template-string token kinds but does not require changing exact_type behavior for existing tokens." } } }, "out_of_scope_surfaces": [], "public_surface_allowlist": [], "build_environment": { "base_image": "lolbench/cpython-base:1", "configure_flags": "--prefix=/usr/local --enable-optimizations=no", "make_target": "(default)", "runtime_caps": "--network=none" }, "validated_at": "2026-06-15", "pr_url": "https://github.com/python/cpython/pull/132662", "pep": "PEP 750", "pep_title": "Template Strings", "pep_url": "https://peps.python.org/pep-0750/", "coverage_gap_note": "Final union coverage is 61.8% (1899/3075 executable solution.patch lines) with the augmented union suite: 34 F2P selectors and 54 P2P selectors. Refreshed after the 2026-06-15 original-P2P expansion; the added pre-existing tokenizer selectors cover adjacent token/tokenize behavior not required by PEP 750 and raise original P2P coverage from 399 to 416 covered lines. The remaining uncovered lines are concentrated in generated parser/opcode metadata and narrow runtime error paths. The shipped union report exceeds the 50% LoLBench coverage floor.", "repo": "python/cpython", "image": "lolbench/cpython-pr-132662:1", "pr_head_sha": "44749c7c19122b01ae9614ca4c654eebd0ad9d77", "diff_source": "github_pr_cache", "agent_contract": { "input": "/in/solution.patch", "output": "/out/agent_report.json", "invocation": "docker run --rm -v $(pwd)/solution.patch:/in/solution.patch:ro -v $(pwd)/out:/out lolbench/cpython-pr-132662:1" }, "test_framework": "cpython_regrtest", "test_cmd_template": "python -m test ", "log_parser": "python_unittest", "validation_summary": { "status": "passed", "validated_at": "2026-06-15", "command": "mounted docker validation for orig/aug/union pre and post on 2026-06-15", "suites": { "orig": { "pre": { "f2p": { "passed": 0, "failed": 0, "errored": 20, "skipped": 0, "total": 20 }, "p2p": { "passed": 50, "failed": 0, "errored": 0, "skipped": 0, "total": 50 }, "resolved": false, "build": "ok" }, "post": { "f2p": { "passed": 20, "failed": 0, "errored": 0, "skipped": 0, "total": 20 }, "p2p": { "passed": 50, "failed": 0, "errored": 0, "skipped": 0, "total": 50 }, "resolved": true, "build": "ok" } }, "aug": { "pre": { "f2p": { "passed": 0, "failed": 0, "errored": 14, "skipped": 0, "total": 14 }, "p2p": { "passed": 4, "failed": 0, "errored": 0, "skipped": 0, "total": 4 }, "resolved": false, "build": "ok" }, "post": { "f2p": { "passed": 14, "failed": 0, "errored": 0, "skipped": 0, "total": 14 }, "p2p": { "passed": 4, "failed": 0, "errored": 0, "skipped": 0, "total": 4 }, "resolved": true, "build": "ok" } }, "union": { "pre": { "f2p": { "passed": 0, "failed": 0, "errored": 34, "skipped": 0, "total": 34 }, "p2p": { "passed": 54, "failed": 0, "errored": 0, "skipped": 0, "total": 54 }, "resolved": false, "build": "ok" }, "post": { "f2p": { "passed": 34, "failed": 0, "errored": 0, "skipped": 0, "total": 34 }, "p2p": { "passed": 54, "failed": 0, "errored": 0, "skipped": 0, "total": 54 }, "resolved": true, "build": "ok" } } } }, "augmented": { "fail_to_pass": [ "test.test_tstring_aug.TestTStringAug.test_literal_metadata_values_and_iteration", "test.test_tstring_aug.TestTStringAug.test_constructor_pickle_pattern_and_validation", "test.test_tstring_aug.TestTStringAug.test_concatenation_debug_raw_uppercase_and_unparse", "test.test_tstring_aug.TestTStringAug.test_tr_raw_named_unicode_escape_keeps_braces_as_fields", "test.test_tstring_aug.TestTStringAug.test_tokenize_untokenize_brace_roundtrip", "test.test_grammar.GrammarTests.test_warn_missed_comma", "test.test_tstring_aug.TestTStringAug.test_disassembly_annotation_ast_compile_and_metadata", "test.test_tstring_aug.TestTStringAug.test_template_public_error_and_gc_paths", "test.test_tstring_aug.TestTStringAug.test_parser_contexts_and_invalid_tstring_matrix", "test.test_tstring_aug.TestTStringAug.test_annotation_unparse_and_ast_validation_paths", "test.test_tstring_aug.TestTStringAug.test_public_parser_literal_and_invalid_grammar_matrix", "test.test_tstring_aug.TestTStringAug.test_public_token_opcode_reload_surface", "test.test_tstring_aug.TestTStringAug.test_public_parser_regression_modules", "test.test_unparse.DirectoryTestCase.test_files" ], "pass_to_pass": [ "test.test_string_compat_aug.TestStringCompatibilityAug.test_template_substitution_contracts", "test.test_string_compat_aug.TestStringCompatibilityAug.test_formatter_and_capwords_contracts", "test.test_string_compat_aug.TestStringCompatibilityAug.test_template_identifier_and_validation_contracts", "test.test_string_compat_aug.TestStringCompatibilityAug.test_formatter_error_and_nested_contracts" ], "eval_tests_patch": "eval_tests_aug.patch", "eval_tests_aug_patch_sha256": "25f3785c6c42fa4711edc34c0823b884523bf57a1e9c68cc8c64684b1cc3b63e", "f2p_aug_sha256": "61744912b84440189de8752b1e2271c5073a812f17b84572cfe894bfe330e17b", "p2p_aug_sha256": "235c1a90c943d5c7e3f03b5929f790bc3afc9c35638e42bc82a0a702f884a09a", "test_level": "system", "suite_modes": [ "orig", "aug", "union" ], "triage": { "test_level_policy": "Augmented tests exercise PEP-750 through t-string syntax and documented public stdlib APIs only; they do not import parser, lexer, tokenizer, AST, or runtime-object implementation internals.", "fail_to_pass": { "test.test_tstring_aug.TestTStringAug.test_literal_metadata_values_and_iteration": { "requirement_sections": [ "Specification > Template String Literals", "Specification > The `Template` Type", "Specification > The `Interpolation` Type", "Specification > The `Template.values` Property", "Specification > Iterating `Template` Contents", "Specification > Interpolation Expression Evaluation" ], "public_surface": "t-string literal syntax plus public string.templatelib.Template and Interpolation attributes documented by PEP 750.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_tstring_aug.TestTStringAug.test_literal_metadata_values_and_iteration", "rationale": "F2P selector fails on base because t-string syntax and string.templatelib are absent, then passes through the documented public runtime API after solution.patch.", "goals": [ "F2P-mut", "F2P-cov" ], "mutants_targeted": [ "mutant_008_interpolation_expression_member_returns_value", "mutant_009_interpolation_format_spec_member_returns_expression", "mutant_011_interpolation_build_repr_conversion_as_str", "mutant_012_interpolation_build_none_conversion_as_s", "mutant_013_template_values_returns_interpolation_objects", "mutant_014_template_iter_yields_empty_strings", "mutant_015_template_iter_starts_with_interpolation", "mutant_026_codegen_interpolation_expression_string_empty", "mutant_027_codegen_interpolation_format_spec_ignored", "mutant_028_codegen_interpolation_conversion_ignored", "mutant_031_template_strings_member_returns_interpolations", "mutant_032_template_interpolations_member_returns_strings" ] }, "test.test_tstring_aug.TestTStringAug.test_constructor_pickle_pattern_and_validation": { "requirement_sections": [ "Specification > The `Template` Type", "Specification > The `Interpolation` Type", "Specification > The `string.templatelib` Module" ], "public_surface": "Public string.templatelib.Template and Interpolation construction, pickling, conversion validation, and structural pattern matching.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_tstring_aug.TestTStringAug.test_constructor_pickle_pattern_and_validation", "rationale": "F2P selector uses only requirement-documented Template and Interpolation public constructors and attributes.", "goals": [ "F2P-mut", "F2P-cov" ], "mutants_targeted": [ "mutant_005_templatelib_interpolation_export_points_to_template", "mutant_006_template_unpickle_drops_interpolations", "mutant_007_interpolation_conversion_accepts_any_string", "mutant_010_interpolation_match_args_omit_format_spec" ] }, "test.test_tstring_aug.TestTStringAug.test_concatenation_debug_raw_uppercase_and_unparse": { "requirement_sections": [ "Specification > Template String Literals", "Specification > The `Template` Type", "Specification > Template String Concatenation", "Specification > Support for the debug specifier (`=`)", "Specification > Raw Template Strings" ], "public_surface": "t/T/rt/tr literal syntax, Template concatenation, debug specifier behavior, and public ast.parse/ast.unparse round-tripping.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_tstring_aug.TestTStringAug.test_concatenation_debug_raw_uppercase_and_unparse", "rationale": "F2P selector observes documented t-string syntax behavior through Python source evaluation and public AST helpers, without importing parser internals.", "goals": [ "F2P-mut", "F2P-cov" ], "mutants_targeted": [ "mutant_016_template_concat_ignores_right_interpolations", "mutant_017_template_concat_drops_right_first_string", "mutant_020_debug_default_conversion_not_repr", "mutant_021_debug_expression_keeps_equals", "mutant_022_lexer_t_prefix_disabled", "mutant_023_lexer_uppercase_t_prefix_disabled", "mutant_024_lexer_rt_prefix_emits_fstring", "mutant_029_ast_unparse_template_str_as_fstring", "mutant_030_ast_unparse_template_str_no_f_concat_split" ] }, "test.test_tstring_aug.TestTStringAug.test_tr_raw_named_unicode_escape_keeps_braces_as_fields": { "requirement_sections": [ "Specification > Template String Literals", "Specification > Raw Template Strings" ], "public_surface": "Raw tr template-string literal syntax plus public Template.strings, Template.values, and Interpolation.expression attributes documented by PEP 750.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_tstring_aug.TestTStringAug.test_tr_raw_named_unicode_escape_keeps_braces_as_fields", "rationale": "Asserts that a raw tr template string treats \\N as literal text and then parses the following braces as template interpolation fields, matching the documented raw-template literal behavior without touching lexer internals.", "goals": [ "F2P-mut", "F2P-cov" ], "mutants_targeted": [ "mutant_025_lexer_tr_prefix_not_raw" ] }, "test.test_tstring_aug.TestTStringAug.test_tokenize_untokenize_brace_roundtrip": { "requirement_sections": [ "Specification > Template String Literals" ], "public_surface": "Public tokenize.generate_tokens and tokenize.untokenize round-trip of source text containing t-string literals.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_tstring_aug.TestTStringAug.test_tokenize_untokenize_brace_roundtrip", "rationale": "F2P selector avoids direct TSTRING token constants and validates only executable public source round-tripping.", "goals": [ "F2P-mut", "F2P-cov" ], "mutants_targeted": [ "mutant_003_tokenize_tstring_middle_not_escaped" ] }, "test.test_grammar.GrammarTests.test_warn_missed_comma": { "requirement_sections": [ "Specification > Template String Literals" ], "public_surface": "Original PR-modified CPython grammar warning test exercising public compile-time diagnostics for t-string literals in expression contexts.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_grammar.GrammarTests.test_warn_missed_comma", "rationale": "Original F2P selector from a modified PR test file; base rejects the added t-string snippets before the intended missed-comma warning path, while the patched interpreter reaches the public SyntaxWarning diagnostics.", "goals": [ "F2P-cov" ], "mutants_targeted": [], "provenance": "original_pr_modified_test" }, "test.test_tstring_aug.TestTStringAug.test_disassembly_annotation_ast_compile_and_metadata": { "requirement_sections": [ "Specification > Template String Literals", "Specification > The `Template` Type", "Specification > Interpolation Expression Evaluation" ], "public_surface": "Public dis/opcode imports, t-string source execution, ast.parse/compile, and future-annotations behavior reached through normal Python source code.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_tstring_aug.TestTStringAug.test_disassembly_annotation_ast_compile_and_metadata", "rationale": "Exercises bytecode metadata import, AST-to-code compilation, and annotation stringification for t-string expressions through public stdlib entry points; base fails at t-string syntax/module availability.", "goals": [ "F2P-cov" ], "mutants_targeted": [] }, "test.test_tstring_aug.TestTStringAug.test_template_public_error_and_gc_paths": { "requirement_sections": [ "Specification > The `Template` Type", "Specification > The `Interpolation` Type" ], "public_surface": "Requirement-documented public Template and Interpolation constructors, operators, attributes, plus public gc.get_referents traversal.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_tstring_aug.TestTStringAug.test_template_public_error_and_gc_paths", "rationale": "Covers public constructor validation, unsupported concatenation behavior, read-only attributes, and GC traversal of documented runtime objects without naming implementation internals.", "goals": [ "F2P-cov" ], "mutants_targeted": [] }, "test.test_tstring_aug.TestTStringAug.test_parser_contexts_and_invalid_tstring_matrix": { "requirement_sections": [ "Specification > Template String Literals", "Specification > Raw Template Strings", "Specification > Interpolation Expression Evaluation" ], "public_surface": "Public Python source parsing and compilation of t-string literals across functions, lambdas, calls, comprehensions, control flow, context managers, exception groups, and syntax-error diagnostics.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_tstring_aug.TestTStringAug.test_parser_contexts_and_invalid_tstring_matrix", "rationale": "Exercises generated parser paths for valid and invalid t-string grammar through normal compile() calls, without importing parser or lexer internals.", "goals": [ "F2P-cov" ], "mutants_targeted": [] }, "test.test_tstring_aug.TestTStringAug.test_annotation_unparse_and_ast_validation_paths": { "requirement_sections": [ "Specification > Template String Literals", "Specification > The `Template` Type", "Specification > The `Interpolation` Type" ], "public_surface": "Public future-annotations source preservation plus public ast.parse/compile flows using AST objects returned from parsing t-string source.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_tstring_aug.TestTStringAug.test_annotation_unparse_and_ast_validation_paths", "rationale": "Covers t-string annotation unparsing and AST validation/error paths through public compile/eval behavior while avoiding direct construction of PR-added AST classes.", "goals": [ "F2P-cov" ], "mutants_targeted": [] }, "test.test_tstring_aug.TestTStringAug.test_public_parser_literal_and_invalid_grammar_matrix": { "requirement_sections": [ "Specification > Template String Literals", "Specification > Raw Template Strings", "Specification > Support for the debug specifier (`=`)", "Specification > Interpolation Expression Evaluation" ], "public_surface": "Public compile() parsing of t-string and f-string source across literal concatenation, functions, classes, decorators, comprehensions, match guards, async constructs, yields, and syntax-error diagnostics.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_tstring_aug.TestTStringAug.test_public_parser_literal_and_invalid_grammar_matrix", "rationale": "F2P selector fails on base because the sidecar t-string test module cannot import string.templatelib, then covers regenerated public parser paths through ordinary source compilation after solution.patch.", "goals": [ "F2P-cov" ], "mutants_targeted": [] }, "test.test_tstring_aug.TestTStringAug.test_public_token_opcode_reload_surface": { "requirement_sections": [ "Specification > Template String Literals", "Specification > Processing Template Strings" ], "public_surface": "Public token, tokenize, and opcode modules plus t-string tokenization and untokenization of source text.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_tstring_aug.TestTStringAug.test_public_token_opcode_reload_surface", "rationale": "F2P selector observes documented template-string token support and public opcode exposure without importing parser, lexer, tokenizer, or bytecode implementation internals.", "goals": [ "F2P-mut", "F2P-cov" ], "mutants_targeted": [ "mutant_001_token_py_tstring_middle_collides_with_fstring_end" ] }, "test.test_tstring_aug.TestTStringAug.test_public_parser_regression_modules": { "requirement_sections": [ "Specification > Template String Literals", "Specification > Raw Template Strings", "Specification > Interpolation Expression Evaluation" ], "public_surface": "Public CPython grammar, f-string, syntax, and compile regression modules executed through unittest from the sidecar F2P test.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_tstring_aug.TestTStringAug.test_public_parser_regression_modules", "rationale": "F2P selector fails on base because the sidecar t-string test module cannot import string.templatelib, then exercises regenerated parser behavior via public language regression tests after solution.patch.", "goals": [ "F2P-cov" ], "mutants_targeted": [] }, "test.test_unparse.DirectoryTestCase.test_files": { "requirement_sections": [ "Specification > Template String Literals" ], "public_surface": "Original PR-modified CPython unparse directory test that parses public stdlib/test source files, including the new t-string test file registered by the PR.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_unparse.DirectoryTestCase.test_files", "rationale": "Original F2P selector from a modified PR test file; base fails when the directory-level unparse test reaches the PR-added test_tstring.py source, while the patched interpreter can parse and unparse it.", "goals": [ "F2P-cov" ], "mutants_targeted": [], "provenance": "original_pr_modified_test" } }, "pass_to_pass": { "test.test_string_compat_aug.TestStringCompatibilityAug.test_template_substitution_contracts": { "requirement_sections": [ "Specification > The `string.templatelib` Module" ], "public_surface": "Pre-existing public string.Template substitution and safe_substitute behavior.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_string_compat_aug.TestStringCompatibilityAug.test_template_substitution_contracts", "rationale": "The PR converts string into a package to add templatelib; existing string.Template behavior must remain unchanged.", "goals": [ "P2P-regression" ], "no_modification_clause": "The PR converts string into a package to add templatelib; existing string.Template behavior must remain unchanged." }, "test.test_string_compat_aug.TestStringCompatibilityAug.test_formatter_and_capwords_contracts": { "requirement_sections": [ "Specification > The `string.templatelib` Module" ], "public_surface": "Pre-existing public string.Formatter and string.capwords behavior.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_string_compat_aug.TestStringCompatibilityAug.test_formatter_and_capwords_contracts", "rationale": "Adjacent public string-module APIs should survive the module-to-package conversion required by PEP 750.", "goals": [ "P2P-regression" ], "no_modification_clause": "Adjacent public string-module APIs should survive the module-to-package conversion required by PEP 750." }, "test.test_string_compat_aug.TestStringCompatibilityAug.test_template_identifier_and_validation_contracts": { "requirement_sections": [ "Specification > The `string.templatelib` Module" ], "public_surface": "Pre-existing public string constants and string.Template validation, identifier, delimiter, substitute, and safe_substitute behavior.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_string_compat_aug.TestStringCompatibilityAug.test_template_identifier_and_validation_contracts", "rationale": "The PR converts string into a package; this keeps legacy string constants and Template edge contracts pinned on base and post states.", "goals": [ "P2P-regression" ], "no_modification_clause": "The PR converts string into a package to add templatelib; existing public string module behavior must remain unchanged." }, "test.test_string_compat_aug.TestStringCompatibilityAug.test_formatter_error_and_nested_contracts": { "requirement_sections": [ "Specification > The `string.templatelib` Module" ], "public_surface": "Pre-existing public string.Formatter nested formatting, conversion, numbering, and recursion-limit behavior.", "internal_symbol_check": [], "runner_surface": "./python -m unittest -v test.test_string_compat_aug.TestStringCompatibilityAug.test_formatter_error_and_nested_contracts", "rationale": "Exercises adjacent unchanged Formatter behavior that should survive the string module-to-package conversion.", "goals": [ "P2P-regression" ], "no_modification_clause": "Adjacent public string-module APIs should survive the module-to-package conversion required by PEP 750." } } }, "coverage_summary": { "status": "passed", "report": "coverage_out/coverage_report_union.json", "minimum_line_coverage_percent": 50, "union_pct": 61.8, "f2p_pct": 58.1, "p2p_pct": 16.8, "executable_lines_in_patch": 3075, "union_covered": 1899, "coverage_complete": true }, "mutation_summary": { "status": "passed", "suite": "union", "command": "IMAGE=lolbench/cpython-pr-132662:1 dockers/CPython_PEP-750_Template-Strings_PR-132662/eval.sh /solution.patch --suite union", "evaluated_mutants": 30, "killed_mutants": 30, "survivors": [], "p2p_regressions": [], "excluded_system_level_mutants": [ null, null ], "reports_glob": "mutations/CPython_PEP-750_Template-Strings_PR-132662/mutant_*/eval_out_union/agent_report.json" } }, "coverage": { "orig": 43.3, "aug": 59.9, "union": 61.8, "denominator": "suite_instrumented_executable_lines" } }