@@ -67,6 +67,7 @@ def test_context():
67
67
# Check that this value is reset after the exiting the context.
68
68
assert mpl .rcParams [PARAM ] == 'gray'
69
69
70
+
70
71
def test_context_dict ():
71
72
ORIGINAL = 'gray'
72
73
VALUE_OTHER = 'blue'
@@ -75,6 +76,7 @@ def test_context_dict():
75
76
assert mpl .rcParams [PARAM ] == VALUE_OTHER
76
77
assert mpl .rcParams [PARAM ] == ORIGINAL
77
78
79
+
78
80
def test_context_dictname1 ():
79
81
# Test dict after style name where dict modifies the same parameter.
80
82
ORIGINAL = 'gray'
@@ -85,6 +87,7 @@ def test_context_dictname1():
85
87
assert mpl .rcParams [PARAM ] == VALUE_OTHER
86
88
assert mpl .rcParams [PARAM ] == ORIGINAL
87
89
90
+
88
91
def test_context_dictname2 ():
89
92
# Test dict before style name where dict modifies the same parameter.
90
93
ORIGINAL = 'gray'
@@ -95,6 +98,7 @@ def test_context_dictname2():
95
98
assert mpl .rcParams [PARAM ] == VALUE
96
99
assert mpl .rcParams [PARAM ] == ORIGINAL
97
100
101
+
98
102
def test_context_dictname3 ():
99
103
# Test dict after style name where dict modifies the a different parameter.
100
104
ORIGINAL = 'gray'
@@ -110,6 +114,7 @@ def test_context_dictname3():
110
114
assert mpl .rcParams [PARAM ] == ORIGINAL
111
115
assert mpl .rcParams [PARAM_OTHER ] == (not VALUE_OTHER )
112
116
117
+
113
118
if __name__ == '__main__' :
114
119
from numpy import testing
115
120
testing .run_module_suite ()
0 commit comments