8000 gh-67790: Support basic formatting for Fraction by mdickinson · Pull Request #111320 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-67790: Support basic formatting for Fraction #111320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Dec 16, 2023
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
0