8000 PEP8 fixes · matplotlib/matplotlib@66dd550 · GitHub
[go: up one dir, main page]

Skip to content

Commit 66dd550

Browse files
committed
PEP8 fixes
1 parent 70c0990 commit 66dd550

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

lib/matplotlib/testing/exceptions.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
class KnownFailureTest(Exception):
2-
'''Raise this exception to mark a test as a known failing test.'''
3-
pass
2+
"""
3+
Raise this exception to mark a test as a known failing test.
4+
"""
5+
46

57
class KnownFailureDidNotFailTest(Exception):
6-
'''Raise this exception to mark a test should have failed but did not.'''
7-
pass
8+
"""
9+
Raise this exception to mark a test should have failed but did not.
10+
"""
11+
812

913
class ImageComparisonFailure(AssertionError):
10-
'''Raise this exception to mark a test as a comparison between two images.'''
14+
"""
15+
Raise this exception to mark a test as a comparison between two images.
16+
"""

lib/matplotlib/testing/noseclasses.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
KnownFailureDidNotFailTest,
1010
ImageComparisonFailure)
1111

12+
1213
class KnownFailure(ErrorClassPlugin):
1314
'''Plugin that installs a KNOWNFAIL error class for the
1415
KnownFailureClass exception. When KnownFailureTest is raised,
@@ -38,7 +39,7 @@ def configure(self, options, conf):
3839
if disable:
3940
self.enabled = False
4041

41-
def addError( self, test, err, *zero_nine_capt_args ):
42+
def addError(self, test, err, *zero_nine_capt_args):
4243
# Fixme (Really weird): if I don't leave empty method here,
4344
# nose gets confused and KnownFails become testing errors when
4445
# using the MplNosePlugin and MplTestCase.

0 commit comments

Comments
 (0)
0