File tree 1 file changed +6
-1
lines changed
lib/iris/tests/unit/fileformats/dot
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 28
28
29
29
import mock
30
30
31
- from iris .fileformats .dot import _dot_path
31
+ from iris .fileformats .dot import _dot_path , _DOT_EXECUTABLE_PATH
32
32
33
33
34
34
class Test (tests .IrisTest ):
@@ -37,6 +37,11 @@ def setUp(self):
37
37
# reset the caching status to allow us to see what happens
38
38
# under different circumstances.
39
39
self .patch ('iris.fileformats.dot._DOT_CHECKED' , new = False )
40
+ # Also patch the private path variable to the existing value (i.e. no
41
+ # change), and restore it after each test: As these tests modify it,
42
+ # that can potentially break subsequent 'normal' behaviour.
43
+ self .patch ('iris.fileformats.dot._DOT_EXECUTABLE_PATH' ,
44
+ _DOT_EXECUTABLE_PATH )
40
45
41
46
def test_valid_absolute_path (self ):
42
47
# Override the configuration value for System.dot_path
You can’t perform that action at this time.
0 commit comments