We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656361b commit da4214aCopy full SHA for da4214a
Lib/test/test_functools.py
@@ -251,8 +251,7 @@ def test_placeholders_optimization(self):
251
252
def test_placeholders_kw_restriction(self):
253
PH = self.module.Placeholder
254
- exc_string = 'keyword Placeholders are not allowed'
255
- with self.assertRaisesRegex(TypeError, exc_string):
+ with self.assertRaisesRegex(TypeError, "Placeholder"):
256
self.partial(capture, a=PH)
257
258
def test_construct_placeholder_singleton(self):
0 commit comments