Message271156
Since you're ultimately comparing a list of lines, it may be useful to split the checks into two parts:
1. Check the deterministic lines
2. Check the variable line (which should always be at index -2 in the splitlines() result)
For the recursion error, we're not too worried about the *exact* repetition count, we're mostly interested in checking that it abbreviated the traceback. Once you've pulled that line out of the main "Are they the same?" comparison, you can use a regex (or just string operations) to extract the repetition count, convert it to an integer and check that it gives the right answer to within (say) +/- 50 repetitions. |
|
Date |
User |
Action |
Args |
2016-07-24 14:35:11 | ncoghlan | set | recipients:
+ ncoghlan, georg.brandl, ethan.furman, Rosuav, xiang.zhang, abarry |
2016-07-24 14:35:11 | ncoghlan | set | messageid: <1469370911.38.0.63120300667.issue26823@psf.upfronthosting.co.za> |
2016-07-24 14:35:11 | ncoghlan | link | issue26823 messages |
2016-07-24 14:35:11 | ncoghlan | create | |
|