[Python-checkins] r65380 - doctools/branches/0.4.x/tests/test_env.py

georg.brandl python-checkins at python.org
Fri Aug 1 22:31:19 CEST 2008


Author: georg.brandl
Date: Fri Aug  1 22:31:18 2008
New Revision: 65380

Log:
Don't rely on mtimes being different for changed files.


Modified:
   doctools/branches/0.4.x/tests/test_env.py

Modified: doctools/branches/0.4.x/tests/test_env.py
==============================================================================
--- doctools/branches/0.4.x/tests/test_env.py	(original)
+++ doctools/branches/0.4.x/tests/test_env.py	Fri Aug  1 22:31:18 2008
@@ -65,10 +65,10 @@
     assert set(latexbuilder.images.values()) == set(['img.pdf', 'img.png', 'img1.png'])
 
 def test_second_update():
-    # delete, add and edit some files and update again
+    # delete, add and "edit" (change saved mtime) some files and update again
+    env.all_docs['contents'] = 0
     root = path(app.srcdir)
     (root / 'images.txt').unlink()
-    (root / 'contents.txt').write_text('Changed file')
     (root / 'new.txt').write_text('New file\n========\n')
     it = env.update(app.config, app.srcdir, app.doctreedir, app)
     msg = it.next()


More information about the Python-checkins mailing list