(self)
| 207 | self.assertRaises(ValueError, fmt.format, "{i}", 10, 20, i=100) |
| 208 | |
| 209 | def test_vformat_recursion_limit(self): |
| 210 | fmt = string.Formatter() |
| 211 | args = () |
| 212 | kwargs = dict(i=100) |
| 213 | with self.assertRaises(ValueError) as err: |
| 214 | fmt._vformat("{i}", args, kwargs, set(), -1) |
| 215 | self.assertIn("recursion", str(err.exception)) |
| 216 | |
| 217 | |
| 218 | # Template tests (formerly housed in test_pep292.py) |
nothing calls this directly
no test coverage detected