← Back to team overview

testtools-dev team mailing list archive

[Bug 791889] Re: The value_re argument for ExpectedException should be optional, and be a matcher instead

 

** Changed in: testtools
       Status: New => Triaged

** Changed in: testtools
   Importance: Undecided => Wishlist

** Summary changed:

- The value_re argument for ExpectedException should be optional, and be a matcher instead
+ The value_re argument for ExpectedException only fits some situations

** Description changed:

- For compatibility, a str/unicode argument could be treated as a regular
- expression as it is now.
+ It would be nice to assume a default of '.*' (e.g., any exception of
+ that type), and to permit matchers rather than just regexes.
+ 
+ For compatibility, a str/unicode argument could automatically create a
+ regular expression matcher against the exception instance.

-- 
You received this bug notification because you are a member of testtools
developers, which is subscribed to testtools.
https://bugs.launchpad.net/bugs/791889

Title:
  The value_re argument for ExpectedException only fits some situations

Status in testtools:
  Triaged

Bug description:
  It would be nice to assume a default of '.*' (e.g., any exception of
  that type), and to permit matchers rather than just regexes.

  For compatibility, a str/unicode argument could automatically create a
  regular expression matcher against the exception instance.

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


References