testtools-dev team mailing list archive
-
testtools-dev team
-
Mailing list archive
-
Message #00925
Re: [Merge] lp:~gz/testtools/unprintable-assertThat-80412 into lp:testtools
* What are we expecting Matcher.__str__ to return? Text or bytes?
-- text. Fugly I know. So python 2.x: use __unicode__, 3.x use
__str__, and we expect text all the time. We use it to get something
looking like what the user asked for after all.
....
* Our docs say that match() should return a Mismatch, so we can assume
subclassing of that.
Please no, duck typing should be all we need. (And None is not a
subclass of Mismatch anyway :P).
-Rob
--
https://code.launchpad.net/~gz/testtools/unprintable-assertThat-80412/+merge/72641
Your team testtools developers is subscribed to branch lp:testtools.
References