| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Co-authored-by: Rihaan Meher <sharktidedev@gmail.com>
Co-authored-by: Rihaan Meher <sharktidedev@gmail.com>
| @@ -1122,4 +1123,4 @@ | |||
| self.assertCmdFails(*args) | |||
|
|
|||
| @support.force_not_colorized | |||
There was a problem hiding this comment.
Can be removed, no?
Sorry, something went wrong.
There was a problem hiding this comment.
Removed!
Sorry, something went wrong.
| self.assertCmdFails(*args) | ||
|
|
||
| @support.force_not_colorized | ||
| def test_help(self): |
There was a problem hiding this comment.
Can we also have a case checking for color?
Sorry, something went wrong.
There was a problem hiding this comment.
Added!
Sorry, something went wrong.
Documentation build overview52 files changed · + 1 added · ± 51 modified + Added ± Modified |
Sorry, something went wrong.
| today = datetime.date(2026, 5, 4) | ||
| cal = calendar._CLIDemoCalendar(highlight_day=today) | ||
| output = cal.formatmonth(2026, 5) | ||
| self.assertIn("\x1b[30m\x1b[43mMay 2026\x1b[0m\n\x1b[36m", output) |
There was a problem hiding this comment.
Hmm, do we support running tests with different themes? If a user has a custom theme this test will fail.
Sorry, something went wrong.
There was a problem hiding this comment.
We don't support running tests with different themes.
Other tests could also break if the user changed the theme:
❯ rg "x1b" Lib/test/test_*.py -l | wc -l
13Right now the theme API is internal/private. If we make it public in a later release, we'll need to consider tests are with the default theme or a specific theme.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM :-) 🌈
Sorry, something went wrong.
|
Thanks @sharktide and @StanFromIreland for the reviews! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
In Python 3.14, we added an amazing colour highlight for today: #128318.
Let's add a touch more colour.
📚 Documentation preview 📚: https://cpython-previews--148354.org.readthedocs.build/