I am trying to set the mod date on a file (Linux) as part of a unit test
run. I can just wait one second, but that slows the test down. A
better solution would be to tweak the mod date on a file, but os.path
does not seem to have setmtime.
Is there any simple way to do this?
TIA,
--
- rmgw
<http://www.electricfis h.com/>
----------------------------------------------------------------------------
Richard Wesley Electric Fish, Inc.
"Violence is the last refuge of the incompetent."
- Isaac Azimov, _Foundation_
run. I can just wait one second, but that slows the test down. A
better solution would be to tweak the mod date on a file, but os.path
does not seem to have setmtime.
Is there any simple way to do this?
TIA,
--
- rmgw
<http://www.electricfis h.com/>
----------------------------------------------------------------------------
Richard Wesley Electric Fish, Inc.
"Violence is the last refuge of the incompetent."
- Isaac Azimov, _Foundation_
Comment