summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorVincent Driessen <vincent@datafox.nl>2010-07-30 16:19:57 +0200
committerVincent Driessen <vincent@datafox.nl>2010-07-30 16:19:57 +0200
commitd609b92c15941a3d42cdb7f5cc1390b252ff56e9 (patch)
tree4c2ce03aaaa4fdab1b7b538a64e21a596bb157c6 /setup.py
parent462137e4ddac4303bdb25f84342d7913da8b2011 (diff)
downloadnose-machineout-d609b92c15941a3d42cdb7f5cc1390b252ff56e9.tar.bz2
nose-machineout-d609b92c15941a3d42cdb7f5cc1390b252ff56e9.tar.xz
nose-machineout-d609b92c15941a3d42cdb7f5cc1390b252ff56e9.zip
Allow users to extend unittest.TestCase.
When users extend their test cases with custom assert-methods (for example, def assertIsEmail(self, s)), for every test using that assertion, machineout now returns the line number inside the assertIsEmail method. This isn't useful, since you lose the information as to what particular test is failing. This patch solves that problem by skipping any methods that start with 'assert' when walking up the stack trace. And, yes, this assumes the convention that your unittest.TestCase extensions use the 'assert'-prefix, which would be a good naming convention anyway.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions