[Zope3-checkins] SVN: zope.testing/trunk/ Fixed test which fails if there is a file named `Data.fs` in the current working directory.

Michael Howitz mh at gocept.com
Thu Nov 3 08:37:08 UTC 2011


Log message for revision 123278:
  Fixed test which fails if there is a file named `Data.fs` in the current working directory.
  (Merged r123277 from 3.10 branch)
  

Changed:
  U   zope.testing/trunk/CHANGES.txt
  U   zope.testing/trunk/src/zope/testing/setupstack.txt

-=-
Modified: zope.testing/trunk/CHANGES.txt
===================================================================
--- zope.testing/trunk/CHANGES.txt	2011-11-03 08:29:25 UTC (rev 123277)
+++ zope.testing/trunk/CHANGES.txt	2011-11-03 08:37:08 UTC (rev 123278)
@@ -8,7 +8,10 @@
 
 - Adds Python 3 support.
 
+- Fixed test which fails if there is a file named `Data.fs` in the current
+  working directory.
 
+
 3.10.2 (2010-11-30)
 ===================
 

Modified: zope.testing/trunk/src/zope/testing/setupstack.txt
===================================================================
--- zope.testing/trunk/src/zope/testing/setupstack.txt	2011-11-03 08:29:25 UTC (rev 123277)
+++ zope.testing/trunk/src/zope/testing/setupstack.txt	2011-11-03 08:37:08 UTC (rev 123278)
@@ -73,11 +73,12 @@
 
     >>> here == os.getcwd()
     False
+    >>> setupstack_cwd = os.getcwd()
 
 We can create files to out heart's content:
 
     >>> foo = open('Data.fs', 'w').write('xxx')
-    >>> os.path.exists('Data.fs')
+    >>> os.path.exists(os.path.join(setupstack_cwd, 'Data.fs'))
     True
 
 We'll make the file read-only. This can cause problems on Windows, but
@@ -106,5 +107,5 @@
 and the files we created will be gone (along with the temporary
 directory that was created:
 
-    >>> os.path.exists('Data.fs')
+    >>> os.path.exists(os.path.join(setupstack_cwd, 'Data.fs'))
     False



More information about the Zope3-Checkins mailing list