summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_events.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-26 09:49:42 (GMT)
committerGitHub <noreply@github.com>2024-06-26 09:49:42 (GMT)
commit84634254fef19ab31439e88ec0213acb46bd7b1f (patch)
tree9ee2d54b050c52b9cb1199c37f552f61512f9c96 /Lib/test/test_asyncio/test_events.py
parent571cefd8c7933f4917739dde43171558f109d63c (diff)
downloadcpython-84634254fef19ab31439e88ec0213acb46bd7b1f.zip
cpython-84634254fef19ab31439e88ec0213acb46bd7b1f.tar.gz
cpython-84634254fef19ab31439e88ec0213acb46bd7b1f.tar.bz2
[3.13] gh-121025: Improve partialmethod.__repr__ (GH-121033) (#121037)
gh-121025: Improve partialmethod.__repr__ (GH-121033) It no longer contains redundant commas and spaces. (cherry picked from commit d2646e3f45e3e4e831ee2ae84d55b161a361d592) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Diffstat (limited to 'Lib/test/test_asyncio/test_events.py')
-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 88c85a3..c92bc81 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -2364,7 +2364,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)