Commit b2b2424
committed
Fix an errant string identity comparison in a test
Short strings can be interned as an optimization in the Python
interpreter, so comparing them by identity (“is”, memory address) can
succeed in practice, but it is neither correct nor reliable when
comparing by equality (“==”, value) is intended.1 parent 155f923 commit b2b2424
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
| 468 | + | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| |||
0 commit comments