Mercurial > p > roundup > code
comparison roundup/install_util.py @ 7013:050bcfc801c3
run the test() routine in install_util.py.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 07 Oct 2022 17:26:10 -0400 |
| parents | 7ada5d44b21d |
| children | 6c7f03902e5a |
comparison
equal
deleted
inserted
replaced
| 7012:921bf9bdeea9 | 7013:050bcfc801c3 |
|---|---|
| 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('# changed!') | 153 mod.write(s2b('# 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) |
