• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smythi93 / Tests4Py / 30040549735

23 Jul 2026 08:04PM UTC coverage: 23.663% (-21.5%) from 45.174%
30040549735

push

github

web-flow
Merge pull request #106 from smythi93/dev

Release 1.0.0 — complete benchmark coverage (328/328 reproducible bugs)

11882 of 64778 new or added lines in 1205 files covered. (18.34%)

46 existing lines in 14 files now uncovered.

18085 of 76426 relevant lines covered (23.66%)

0.24 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/tests4py/projects/resources/matplotlib/bug_21/unittests.py
NEW
1
import unittest
×
NEW
2
import matplotlib
×
NEW
3
matplotlib.use('Agg')
×
NEW
4
import numpy as np
×
NEW
5
import matplotlib.pyplot as plt
×
6

NEW
7
class TestsFailing(unittest.TestCase):
×
8

NEW
9
    def test_diversity_1(self):
×
NEW
10
        plt.rcdefaults()
×
NEW
11
        plt.rcParams['lines.marker'] = 'p'
×
NEW
12
        fig, ax = plt.subplots()
×
NEW
13
        d = np.arange(100)
×
NEW
14
        d[-1] = 150
×
NEW
15
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
16
        self.assertEqual('', bxp['caps'][0].get_marker())
×
NEW
17
        plt.close(fig)
×
NEW
18
        plt.rcdefaults()
×
19

NEW
20
    def test_diversity_2(self):
×
NEW
21
        plt.rcdefaults()
×
NEW
22
        plt.rcParams['lines.marker'] = 's'
×
NEW
23
        fig, ax = plt.subplots()
×
NEW
24
        d = np.arange(100)
×
NEW
25
        d[-1] = 150
×
NEW
26
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
27
        self.assertEqual('', bxp['medians'][0].get_marker())
×
NEW
28
        plt.close(fig)
×
NEW
29
        plt.rcdefaults()
×
30

NEW
31
    def test_diversity_3(self):
×
NEW
32
        plt.rcdefaults()
×
NEW
33
        plt.rcParams['lines.marker'] = 'v'
×
NEW
34
        fig, ax = plt.subplots()
×
NEW
35
        d = np.arange(100)
×
NEW
36
        d[-1] = 150
×
NEW
37
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
38
        self.assertEqual('', bxp['medians'][0].get_marker())
×
NEW
39
        plt.close(fig)
×
NEW
40
        plt.rcdefaults()
×
41

NEW
42
    def test_diversity_4(self):
×
NEW
43
        plt.rcdefaults()
×
NEW
44
        plt.rcParams['lines.marker'] = '*'
×
NEW
45
        fig, ax = plt.subplots()
×
NEW
46
        d = np.arange(100)
×
NEW
47
        d[-1] = 150
×
NEW
48
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
49
        self.assertEqual('', bxp['whiskers'][0].get_marker())
×
NEW
50
        plt.close(fig)
×
NEW
51
        plt.rcdefaults()
×
52

NEW
53
    def test_diversity_5(self):
×
NEW
54
        plt.rcdefaults()
×
NEW
55
        plt.rcParams['lines.marker'] = 'h'
×
NEW
56
        fig, ax = plt.subplots()
×
NEW
57
        d = np.arange(100)
×
NEW
58
        d[-1] = 150
×
NEW
59
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
60
        self.assertEqual('', bxp['medians'][0].get_marker())
×
NEW
61
        plt.close(fig)
×
NEW
62
        plt.rcdefaults()
×
63

NEW
64
    def test_diversity_6(self):
×
NEW
65
        plt.rcdefaults()
×
NEW
66
        plt.rcParams['lines.marker'] = 'o'
×
NEW
67
        fig, ax = plt.subplots()
×
NEW
68
        d = np.arange(100)
×
NEW
69
        d[-1] = 150
×
NEW
70
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
71
        self.assertEqual('', bxp['boxes'][0].get_marker())
×
NEW
72
        plt.close(fig)
×
NEW
73
        plt.rcdefaults()
×
74

NEW
75
    def test_diversity_7(self):
×
NEW
76
        plt.rcdefaults()
×
NEW
77
        plt.rcParams['lines.marker'] = 'o'
×
NEW
78
        fig, ax = plt.subplots()
×
NEW
79
        d = np.arange(100)
×
NEW
80
        d[-1] = 150
×
NEW
81
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
82
        self.assertEqual('', bxp['whiskers'][0].get_marker())
×
NEW
83
        plt.close(fig)
×
NEW
84
        plt.rcdefaults()
×
85

NEW
86
    def test_diversity_8(self):
×
NEW
87
        plt.rcdefaults()
×
NEW
88
        plt.rcParams['lines.marker'] = 'v'
×
NEW
89
        fig, ax = plt.subplots()
×
NEW
90
        d = np.arange(100)
×
NEW
91
        d[-1] = 150
×
NEW
92
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
93
        self.assertEqual('', bxp['boxes'][0].get_marker())
×
NEW
94
        plt.close(fig)
×
NEW
95
        plt.rcdefaults()
×
96

NEW
97
    def test_diversity_9(self):
×
NEW
98
        plt.rcdefaults()
×
NEW
99
        plt.rcParams['lines.marker'] = 'o'
×
NEW
100
        fig, ax = plt.subplots()
×
NEW
101
        d = np.arange(100)
×
NEW
102
        d[-1] = 150
×
NEW
103
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
104
        self.assertEqual('', bxp['caps'][0].get_marker())
×
NEW
105
        plt.close(fig)
×
NEW
106
        plt.rcdefaults()
×
107

NEW
108
    def test_diversity_10(self):
×
NEW
109
        plt.rcdefaults()
×
NEW
110
        plt.rcParams['lines.marker'] = '+'
×
NEW
111
        fig, ax = plt.subplots()
×
NEW
112
        d = np.arange(100)
×
NEW
113
        d[-1] = 150
×
NEW
114
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
115
        self.assertEqual('', bxp['medians'][0].get_marker())
×
NEW
116
        plt.close(fig)
×
NEW
117
        plt.rcdefaults()
×
118

NEW
119
class TestsPassing(unittest.TestCase):
×
120

NEW
121
    def test_diversity_1(self):
×
NEW
122
        plt.rcdefaults()
×
NEW
123
        plt.rcParams['boxplot.flierprops.marker'] = 'x'
×
NEW
124
        fig, ax = plt.subplots()
×
NEW
125
        d = np.arange(100)
×
NEW
126
        d[-1] = 150
×
NEW
127
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
128
        self.assertEqual('x', bxp['fliers'][0].get_marker())
×
NEW
129
        plt.close(fig)
×
NEW
130
        plt.rcdefaults()
×
131

NEW
132
    def test_diversity_2(self):
×
NEW
133
        plt.rcdefaults()
×
NEW
134
        plt.rcParams['boxplot.flierprops.marker'] = 'D'
×
NEW
135
        fig, ax = plt.subplots()
×
NEW
136
        d = np.arange(100)
×
NEW
137
        d[-1] = 150
×
NEW
138
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
139
        self.assertEqual('D', bxp['fliers'][0].get_marker())
×
NEW
140
        plt.close(fig)
×
NEW
141
        plt.rcdefaults()
×
142

NEW
143
    def test_diversity_3(self):
×
NEW
144
        plt.rcdefaults()
×
NEW
145
        plt.rcParams['boxplot.meanprops.marker'] = 'h'
×
NEW
146
        fig, ax = plt.subplots()
×
NEW
147
        d = np.arange(100)
×
NEW
148
        d[-1] = 150
×
NEW
149
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
150
        self.assertEqual('h', bxp['means'][0].get_marker())
×
NEW
151
        plt.close(fig)
×
NEW
152
        plt.rcdefaults()
×
153

NEW
154
    def test_diversity_4(self):
×
NEW
155
        plt.rcdefaults()
×
NEW
156
        plt.rcParams['boxplot.flierprops.marker'] = 'v'
×
NEW
157
        fig, ax = plt.subplots()
×
NEW
158
        d = np.arange(100)
×
NEW
159
        d[-1] = 150
×
NEW
160
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
161
        self.assertEqual('v', bxp['fliers'][0].get_marker())
×
NEW
162
        plt.close(fig)
×
NEW
163
        plt.rcdefaults()
×
164

NEW
165
    def test_diversity_5(self):
×
NEW
166
        plt.rcdefaults()
×
NEW
167
        plt.rcParams['boxplot.flierprops.marker'] = '*'
×
NEW
168
        fig, ax = plt.subplots()
×
NEW
169
        d = np.arange(100)
×
NEW
170
        d[-1] = 150
×
NEW
171
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
172
        self.assertEqual('*', bxp['fliers'][0].get_marker())
×
NEW
173
        plt.close(fig)
×
NEW
174
        plt.rcdefaults()
×
175

NEW
176
    def test_diversity_6(self):
×
NEW
177
        plt.rcdefaults()
×
NEW
178
        plt.rcParams['boxplot.meanprops.marker'] = '^'
×
NEW
179
        fig, ax = plt.subplots()
×
NEW
180
        d = np.arange(100)
×
NEW
181
        d[-1] = 150
×
NEW
182
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
183
        self.assertEqual('^', bxp['means'][0].get_marker())
×
NEW
184
        plt.close(fig)
×
NEW
185
        plt.rcdefaults()
×
186

NEW
187
    def test_diversity_7(self):
×
NEW
188
        plt.rcdefaults()
×
NEW
189
        plt.rcParams['boxplot.flierprops.marker'] = 's'
×
NEW
190
        fig, ax = plt.subplots()
×
NEW
191
        d = np.arange(100)
×
NEW
192
        d[-1] = 150
×
NEW
193
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
194
        self.assertEqual('s', bxp['fliers'][0].get_marker())
×
NEW
195
        plt.close(fig)
×
NEW
196
        plt.rcdefaults()
×
197

NEW
198
    def test_diversity_8(self):
×
NEW
199
        plt.rcdefaults()
×
NEW
200
        plt.rcParams['boxplot.meanprops.marker'] = 'x'
×
NEW
201
        fig, ax = plt.subplots()
×
NEW
202
        d = np.arange(100)
×
NEW
203
        d[-1] = 150
×
NEW
204
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
205
        self.assertEqual('x', bxp['means'][0].get_marker())
×
NEW
206
        plt.close(fig)
×
NEW
207
        plt.rcdefaults()
×
208

NEW
209
    def test_diversity_9(self):
×
NEW
210
        plt.rcdefaults()
×
NEW
211
        plt.rcParams['boxplot.meanprops.marker'] = '*'
×
NEW
212
        fig, ax = plt.subplots()
×
NEW
213
        d = np.arange(100)
×
NEW
214
        d[-1] = 150
×
NEW
215
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
216
        self.assertEqual('*', bxp['means'][0].get_marker())
×
NEW
217
        plt.close(fig)
×
NEW
218
        plt.rcdefaults()
×
219

NEW
220
    def test_diversity_10(self):
×
NEW
221
        plt.rcdefaults()
×
NEW
222
        plt.rcParams['boxplot.flierprops.marker'] = 'o'
×
NEW
223
        fig, ax = plt.subplots()
×
NEW
224
        d = np.arange(100)
×
NEW
225
        d[-1] = 150
×
NEW
226
        bxp = ax.boxplot(d, showmeans=True)
×
NEW
227
        self.assertEqual('o', bxp['fliers'][0].get_marker())
×
NEW
228
        plt.close(fig)
×
NEW
229
        plt.rcdefaults()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc