Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Unified Diff: Lib/test/test_userstring.py

Issue 8706: accept keyword arguments on all base type methods and builtins
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/string_tests.py ('k') | Objects/bytearrayobject.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_userstring.py Sun Feb 26 18:09:50 2012 +0100
+++ b/Lib/test/test_userstring.py Sun Feb 26 20:28:46 2012 +0100
@@ -27,13 +27,14 @@
realresult
)
- def checkraises(self, exc, object, methodname, *args):
+ def checkraises(self, exc, object, methodname, *args, **kwargs):
object = self.fixtype(object)
# we don't fix the arguments, because UserString can't cope with it
self.assertRaises(
exc,
getattr(object, methodname),
- *args
+ *args,
+ **kwargs
)
def checkcall(self, object, methodname, *args):
« no previous file with comments | « Lib/test/string_tests.py ('k') | Objects/bytearrayobject.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+