Allow assertThrows to pass varargs to callable, like assertRaises
Bug #831895 reported by
Jonathan Jacobs
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
lp:~divmod-dev/divmod.org/831895-assertThrows-varargs
- Jean-Paul Calderone: Approve
-
Diff: 67 lines (+33/-4)2 files modifiedNevow/nevow/js/Divmod/Test/TestUnitTest.js (+27/-0)
Nevow/nevow/js/Divmod/UnitTest.js (+6/-4)
Changed in nevow: | |
importance: | Undecided → Low |
assignee: | nobody → Jonathan Jacobs (jjacobs) |
status: | New → Fix Committed |
To post a comment you must log in.