8000 gh-114563: C decimal falls back to pydecimal for unsupported format strings by belm0 · Pull Request #114879 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
Prev Previous commit
Next Next commit
corrected null fill char test
  • Loading branch information
belm0 committed Feb 10, 2024
commit 5803d9c962aa0971ba3823ec82b699d1e0fa4da3
4 changes: 1 addition & 3 deletions Lib/test/test_decimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,9 +1110,7 @@ def test_formatting(self):
('z>z6.1f', '-0.', 'zzz0.0'),
('x>z6.1f', '-0.', 'xxx0.0'),
('🖤>z6.1f', '-0.', '🖤🖤🖤0.0'), # multi-byte fill char
# TODO: fix this null fill char case (and confirm mpdecimal impl.)
# output is ".0", expected is "0.0"
#('\0>z6.1f', '-0.', '\0\0\00.0'), # null fill char
('\x00>z6.1f', '-0.', '\x00\x00\x000.0'), # null fill char

# issue 114563 ('z' format on F type in cdecimal)
('z3,.10F', '-6.24E-323', '0.0000000000'),
Expand Down
0