Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 66dd550

Browse filesBrowse files
committed
PEP8 fixes
1 parent 70c0990 commit 66dd550
Copy full SHA for 66dd550

File tree

Expand file treeCollapse file tree

2 files changed

+13
-6
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+13
-6
lines changed

‎lib/matplotlib/testing/exceptions.py

Copy file name to clipboard
+11-5Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/testing/noseclasses.py
+2-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.