Message96368
Consider this example, based on two doctests from Twisted:
from doctest import DocTestSuite
import twisted.web2.stream
docTestOne = DocTestSuite(twisted.web2.stream)._tests[0]
import twisted.web2.test.test_stream
docTestTwo = DocTestSuite(twisted.web2.test.test_stream)._tests[0]
print docTestOne.id(), '==', docTestTwo.id(), '?'
print docTestOne == docTestTwo
One might reasonably expect a false result, since the two DocTestCase
instances represent two different doctests. One will meet with
surprise, though. |
|
Date |
User |
Action |
Args |
2009-12-14 02:23:38 | exarkun | set | recipients:
+ exarkun |
2009-12-14 02:23:38 | exarkun | set | messageid: <1260757418.81.0.639344471031.issue7502@psf.upfronthosting.co.za> |
2009-12-14 02:23:34 | exarkun | link | issue7502 messages |
2009-12-14 02:23:34 | exarkun | create | |
|