(writer)
| 104 | |
| 105 | @pytest.mark.skipif(sys.version_info < (3, 14), reason="Template Strings not supported") |
| 106 | def test_template_string_nested(writer): |
| 107 | inner = Template(Interpolation(2**8)) |
| 108 | template = Template("2**8 = ", Interpolation(inner)) |
| 109 | |
| 110 | logger.add(writer, format="{message}", colorize=False) |
| 111 | |
| 112 | logger.info(template) |
| 113 | |
| 114 | result = writer.read() |
| 115 | assert result == "2**8 = 256\n" |
| 116 | |
| 117 | |
| 118 | @pytest.mark.skipif(sys.version_info < (3, 14), reason="Template Strings not supported") |