File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 9
9
import tempfile
10
10
11
11
import dateutil
12
- import mock
12
+ try :
13
+ # mock in python 3.3+
14
+ from unittest import mock
15
+ except ImportError :
16
+ import mock
13
17
from nose .tools import assert_raises , assert_equal
14
18
15
19
from matplotlib .testing .decorators import image_comparison , cleanup
Original file line number Diff line number Diff line change 3
3
4
4
import six
5
5
from six .moves import xrange
6
-
7
- import mock
6
+ try :
7
+ # mock in python 3.3+
8
+ from unittest import mock
9
+ except ImportError :
10
+ import mock
8
11
from nose .tools import assert_equal
9
12
import numpy as np
10
13
Original file line number Diff line number Diff line change 3
3
4
4
import six
5
5
6
- import mock
7
- from nose .tools import assert_equal
8
6
import numpy as np
9
7
10
8
from matplotlib .testing .decorators import image_comparison , cleanup
11
9
import matplotlib .pyplot as plt
12
10
import matplotlib .patheffects as path_effects
13
11
12
+ try :
13
+ # mock in python 3.3+
14
+ from unittest import mock
15
+ except ImportError :
16
+ import mock
17
+ from nose .tools import assert_equal
18
+
14
19
15
20
@image_comparison (baseline_images = ['patheffect1' ], remove_text = True )
16
21
def test_patheffect1 ():
You can’t perform that action at this time.
0 commit comments