summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>2024-06-26 09:08:27 (GMT)
committerGitHub <noreply@github.com>2024-06-26 09:08:27 (GMT)
commitd2646e3f45e3e4e831ee2ae84d55b161a361d592 (patch)
tree77cf53bcefa5911c481de9c6234a50aff7fc8d3f /Lib/test/test_asyncio
parentd8f82432a36178a2376cc2d0984b02bb03f6d55f (diff)
downloadcpython-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.py2
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)