Mercurial > piecrust2
view .hgtags @ 182:a54d3c0b5f4a
tests: Patch `os.path.exists` and improve patching for `open`.
You can specify additional modules for which to patch `open`.
Also, it was incorrectly updating the opened file, even when it was opened
for read only. Now it only updates the contents if the file was opened for
write, and supports appending to the end.
Last, it supports opening text files in binary mode.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 04 Jan 2015 14:55:41 -0800 |
parents | ede1a59f481d |
children | b30ab97e091b |
line wrap: on
line source
cb1ed436642caadf9d3f19c1750096b116e43606 2.0.0-alpha1 cb1ed436642caadf9d3f19c1750096b116e43606 2.0.0-alpha1 ecee3e8f35e57e4a606794a11fc6e8aba2734d2f 2.0.0-alpha1 ecee3e8f35e57e4a606794a11fc6e8aba2734d2f 2.0.0-alpha1 8f988aa54433e0c4aa036cd00bcfa5904d3be304 2.0.0-alpha1 fdb08d986384687959fe11640f058eac22c17b8f 2.0.0-alpha2 c80a3be091da98f00ccb8e3a1be628f7d6a68ae5 2.0.0-alpha3 d74ae33832ae4ca0d17b56ea862381517875ab0a 2.0.0-alpha4 d74ae33832ae4ca0d17b56ea862381517875ab0a 2.0.0-alpha4 028df35a690e55c95c8fae692c85b3d69dc6cc7e 2.0.0-alpha4 acc718ab56da2aeecce83a9fe8240f48f2b0b607 2.0.0a5