diff options
author | Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | 2024-06-26 09:08:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-26 09:08:27 (GMT) |
commit | d2646e3f45e3e4e831ee2ae84d55b161a361d592 (patch) | |
tree | 77cf53bcefa5911c481de9c6234a50aff7fc8d3f /Lib/test/test_asyncio | |
parent | d8f82432a36178a2376cc2d0984b02bb03f6d55f (diff) | |
download | cpython-d2646e3f45e3e4e831ee2ae84d55b161a361d592.zip cpython-d2646e3f45e3e4e831ee2ae84d55b161a361d592.tar.gz cpython-d2646e3f45e3e4e831ee2ae84d55b161a361d592.tar.bz2 |
gh-121025: Improve partialmethod.__repr__ (GH-121033)
It no longer contains redundant commas and spaces.
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 34ea02b..4dcf9f0 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -2348,7 +2348,7 @@ class HandleTests(test_utils.TestCase): h = asyncio.Handle(cb, (), self.loop) cb_regex = r'<function HandleTests.test_handle_repr .*>' - cb_regex = fr'functools.partialmethod\({cb_regex}, , \)\(\)' + cb_regex = fr'functools.partialmethod\({cb_regex}\)\(\)' regex = fr'^<Handle {cb_regex} at {re.escape(filename)}:{lineno}>$' self.assertRegex(repr(h), regex) |