Skip to content

Commit da4214a

Browse files
loosen the regex in test
Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent 656361b commit da4214a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test_functools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,7 @@ def test_placeholders_optimization(self):
251251

252252
def test_placeholders_kw_restriction(self):
253253
PH = self.module.Placeholder
254-
exc_string = 'keyword Placeholders are not allowed'
255-
with self.assertRaisesRegex(TypeError, exc_string):
254+
with self.assertRaisesRegex(TypeError, "Placeholder"):
256255
self.partial(capture, a=PH)
257256

258257
def test_construct_placeholder_singleton(self):

0 commit comments

Comments
 (0)