Mercurial > p > roundup > code
comparison roundup/install_util.py @ 7016:6c7f03902e5a
Backed out changeset 050bcfc801c3
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 07 Oct 2022 18:53:20 -0400 |
| parents | 050bcfc801c3 |
| children | 8e118eb20d86 |
comparison
equal
deleted
inserted
replaced
| 7015:a8741a95645a | 7016:6c7f03902e5a |
|---|---|
| 148 | 148 |
| 149 assert checkDigest(testfile), "digest ok w/o modification" | 149 assert checkDigest(testfile), "digest ok w/o modification" |
| 150 | 150 |
| 151 mod = open(testfile, 'r+b') | 151 mod = open(testfile, 'r+b') |
| 152 mod.seek(0) | 152 mod.seek(0) |
| 153 mod.write(s2b('# changed!')) | 153 mod.write('# changed!') |
| 154 mod.close() | 154 mod.close() |
| 155 | 155 |
| 156 assert not checkDigest(testfile), "digest fails after modification" | 156 assert not checkDigest(testfile), "digest fails after modification" |
| 157 | 157 |
| 158 os.remove(testfile) | 158 os.remove(testfile) |
