← Back to team overview

divmod-dev team mailing list archive

[Bug 831895] [NEW] Allow assertThrows to pass varargs to callable, like assertRaises

 

Public bug reported:

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.

** Affects: nevow
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Divmod-
dev, which is the registrant for nevow.
https://bugs.launchpad.net/bugs/831895

Title:
  Allow assertThrows to pass varargs to callable, like assertRaises

Status in Divmod Nevow:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nevow/+bug/831895/+subscriptions


Follow ups

References