-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Expand file tree
/
Copy pathnoseclasses.py
More file actions
26 lines (21 loc) · 691 Bytes
/
noseclasses.py
File metadata and controls
26 lines (21 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""
The module testing.noseclasses is deprecated as of 2.1
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
try:
from ._nose.plugins.knownfailure import KnownFailure as _KnownFailure
has_nose = True
except ImportError:
has_nose = False
_KnownFailure = object
from .. import cbook
cbook.warn_deprecated(
since="2.1",
message="The noseclass module has been deprecated in 2.1 and will "
"be removed in matplotlib 2.3.")
@cbook.deprecated("2.1")
class KnownFailure(_KnownFailure):
def __init__(self):
if not has_nose:
raise ImportError("Need nose for this plugin.")