Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update invalid format tests
  • Loading branch information
mdickinson committed Dec 3, 2023
commit 30260f99b88e5c0fd9fd5d5494f3768e8e69c4bb
10 changes: 4 additions & 6 deletions Lib/test/test_fractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,12 +1256,10 @@ def test_invalid_formats(self):
'.%',
# Z instead of z for negative zero suppression
'Z.2f'
# D instead of d for integer-style formatting
'10D',
# z flag not supported for integer-style formatting
'zd',
# zero padding not supported for integer-style formatting
'05d',
# z flag not supported for general formatting
'z',
# zero padding not supported for general formatting
'05',
]
for spec in invalid_specs:
with self.subTest(spec=spec):
Expand Down