Please sign in to comment.
bpo-37972: unittest.mock._Call now passes on __getitem__ to the __get…
…attr__ chaining so that call() can be subscriptable (GH-15565) * bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptable *
📜 🤖Added by blurb_it. * Update 2019-08-28-21-40-12.bpo-37972.kP-n4L.rst added name of the contributor * bpo-37972: made all dunder methods chainable for _Call * bpo-37972: delegate only attributes of tuple instead to __getattr__
- Loading branch information...
Showing with 31 additions and 0 deletions.
|@@ -0,0 +1,5 @@|
|Subscripts to the `unittest.mock.call` objects now receive the same chaining mechanism as any other custom attributes, so that the following usage no longer raises a `TypeError`:|
|Patch by blhsing|