Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87ee161

Browse files
committed
testing: workaround issue with nose testing's ZeroNinePlugin
svn path=/trunk/matplotlib/; revision=7645
1 parent 0495f31 commit 87ee161

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

lib/matplotlib/testing/noseclasses.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,15 @@ def configure(self, options, conf):
3838
if disable:
3939
self.enabled = False
4040

41-
def addError( self, test, err ):
41+
def addError( self, test, err, *zero_nine_capt_args ):
4242
# Fixme (Really weird): if I don't leave empty method here,
4343
# nose gets confused and KnownFails become testing errors when
4444
# using the MplNosePlugin and MplTestCase.
45+
46+
# The *zero_nine_capt_args captures an extra argument. There
47+
# seems to be a bug in
48+
# nose.testing.manager.ZeroNinePlugin.addError() in which a
49+
# 3rd positional argument ("capt") is passed to the plugin's
50+
# addError() method, even if one is not explicitly using the
51+
# ZeroNinePlugin.
4552
pass

0 commit comments

Comments
 (0)