[CMF-checkins] CVS: CMF/CMFCore/tests/base - testcase.py:1.3.16.2
Chris Withers
chrisw@nipltd.com
Mon, 19 Aug 2002 09:29:40 -0400
Update of /cvs-repository/CMF/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv18072/CMFCore/tests/base
Modified Files:
Tag: chrisw-dirview-branch
testcase.py
Log Message:
tweak to try and make test pass on Linux.
=== CMF/CMFCore/tests/base/testcase.py 1.3.16.1 => 1.3.16.2 ===
--- CMF/CMFCore/tests/base/testcase.py:1.3.16.1 Mon Aug 19 08:41:04 2002
+++ CMF/CMFCore/tests/base/testcase.py Mon Aug 19 09:29:40 2002
@@ -82,9 +82,10 @@
def _writeFile(self, filename, stuff):
# write some stuff to a file on disk
# make sure the file's modification time has changed
+ # also make sure the skin folder mod time ahs changed
thePath = join(self.skin_path_name,filename)
try:
- mtime1 = stat(thePath)[8]
+ mtime1 = stat(thePath)[8], stat(self.skin_path_name)[8]
except:
mtime1 = 0
mtime2 = mtime1
@@ -92,7 +93,7 @@
f = open(thePath,'w')
f.write(stuff)
f.close()
- mtime2 = stat(thePath)[8]
+ mtime2 = stat(thePath)[8], stat(self.skin_path_name)[8]
def _deleteFile(self,filename):
remove(join(self.skin_path_name,filename))