Commit 63dc9ea
"Fix" Sample.__eq__()
The previous implementation had 3 bugs:
* it didn't compare units
* it only compared metadata in one direction (which violates symmetry, i.e.
x == y did not imply that y == x)
* as a consequency of lack of symmetry, there existed values x,y such that
x == y was true AND x != y was true.
The "fix" is to just delete the method. This causes python to use the standard
tuple equality method instead (which does the right thing).
PiperOrigin-RevId: 7163686871 parent 0cbbf12 commit 63dc9ea
File tree
5 files changed
+158
-26
lines changed- perfkitbenchmarker
- tests
- linux_packages
- resources
- time_triggers
5 files changed
+158
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | 148 | | |
164 | 149 | | |
165 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
253 | 258 | | |
254 | 259 | | |
255 | 260 | | |
| |||
265 | 270 | | |
266 | 271 | | |
267 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
268 | 278 | | |
269 | 279 | | |
270 | 280 | | |
| |||
280 | 290 | | |
281 | 291 | | |
282 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
283 | 298 | | |
284 | 299 | | |
285 | 300 | | |
| |||
295 | 310 | | |
296 | 311 | | |
297 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
298 | 318 | | |
299 | 319 | | |
300 | 320 | | |
| |||
310 | 330 | | |
311 | 331 | | |
312 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
313 | 338 | | |
314 | 339 | | |
315 | 340 | | |
| |||
325 | 350 | | |
326 | 351 | | |
327 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
328 | 358 | | |
329 | 359 | | |
330 | 360 | | |
| |||
0 commit comments