In the scenario of a missing single placeholder, the mod operator did
not fail as it does when having multiple placeholder
How to reproduce:
>>> Markup("foo") % 42
Markup("foo")
>>> Markup("foo") % (42, 43)
TypeError: not all arguments converted during string formatting
>>> Markup("foo") % (42,)
TypeError: not all arguments converted during string formatting
Expected behavior:
Fail on the three code snippets, as when using native strings.
Environment:
- Python version: 3.9.5
- MarkupSafe version: 1.1.0
In the scenario of a missing single placeholder, the mod operator did
not fail as it does when having multiple placeholder
How to reproduce:
Expected behavior:
Fail on the three code snippets, as when using native strings.
Environment: