[Checkins] SVN: zope.fssync/trunk/src/zope/fssync/tests/test_docs.py Fix test, hopefully.
Stephan Richter
srichter at gmail.com
Fri Jul 24 13:12:00 EDT 2009
Log message for revision 102259:
Fix test, hopefully.
Changed:
U zope.fssync/trunk/src/zope/fssync/tests/test_docs.py
-=-
Modified: zope.fssync/trunk/src/zope/fssync/tests/test_docs.py
===================================================================
--- zope.fssync/trunk/src/zope/fssync/tests/test_docs.py 2009-07-24 17:05:54 UTC (rev 102258)
+++ zope.fssync/trunk/src/zope/fssync/tests/test_docs.py 2009-07-24 17:11:59 UTC (rev 102259)
@@ -33,7 +33,7 @@
_test_dirs = []
-TESTDIR = os.path.join(os.path.dirname(__file__), 'svntestdir')
+TESTDIR = os.path.dirname(__file__)
def cleanUpZope(test):
for wcdir in _test_dirs:
@@ -41,16 +41,14 @@
cleanup.cleanUp()
def svn_test_checkout():
- if not os.path.exists(TESTDIR):
- os.mkdir(TESTDIR)
- base = py.path.local(__file__).dirpath('svntestdir')
+ base = py.path.svnwc(TESTDIR).mkdir('svntestdir')
pat = 'test%s'
count = 1
while base.join(pat % count).check():
count += 1
name = pat % count
wcdir = py.path.svnwc(base).mkdir(name)
- _test_dirs.append(wcdir)
+ _test_dirs.append(base)
return wcdir
def rel_paths(checkout, paths):
More information about the Checkins
mailing list