Allow assertThrows to pass varargs to callable, like assertRaises

Bug #831895 reported by Jonathan Jacobs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nevow
Fix Committed
Low
Jonathan Jacobs

Bug Description

Sometimes it can be convenient to pass arguments to the callable in assertThrows directly, instead of creating an anonymous inner function; this would match assertRaises in Python. Also, JSHint warns about creating functions inside loops.

Related branches

Changed in nevow:
importance: Undecided → Low
assignee: nobody → Jonathan Jacobs (jjacobs)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.