[Checkins] SVN: zope.fssync/trunk/src/zope/fssync/tests/test_docs.py Finally, a solution that works. Ignore the SVN tests, if we do
Stephan Richter
srichter at gmail.com
Fri Jul 24 13:16:09 EDT 2009
Log message for revision 102260:
Finally, a solution that works. Ignore the SVN tests, if we do
not deal with an SVN checkout.
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:11:59 UTC (rev 102259)
+++ zope.fssync/trunk/src/zope/fssync/tests/test_docs.py 2009-07-24 17:16:08 UTC (rev 102260)
@@ -82,7 +82,7 @@
self.o2 = o2
def testPathPersistentLoader(self):
-
+
pickler = pickle.StandardUnpickler(self.o1)
loader = pickle.PathPersistentLoader(pickler)
self.assert_(loader.load('/') is self.root)
@@ -104,7 +104,7 @@
flags = doctest.NORMALIZE_WHITESPACE+doctest.ELLIPSIS
suite = unittest.TestSuite()
-
+
suite = unittest.makeSuite(PersistentLoaderTestCase)
suite.addTest(doctest.DocTestSuite('zope.fssync.pickle'))
@@ -124,10 +124,11 @@
setUp=setUp, tearDown=tearDown,
optionflags=flags))
- suite.addTest(doctest.DocFileSuite('../svn.txt',
- globs=globs,
- setUp=setUp, tearDown=tearDown,
- optionflags=flags))
+ if '.svn' in os.listdir(TESTDIR):
+ suite.addTest(doctest.DocFileSuite('../svn.txt',
+ globs=globs,
+ setUp=setUp, tearDown=tearDown,
+ optionflags=flags))
return suite
More information about the Checkins
mailing list