[Zope-CVS] CVS: Products/ZopeVersionControl/tests -
testReferenceVersioning.py:1.3
Sidnei da Silva
sidnei at awkly.org
Mon May 3 11:25:04 EDT 2004
Update of /cvs-repository/Products/ZopeVersionControl/tests
In directory cvs.zope.org:/tmp/cvs-serv26996/tests
Modified Files:
testReferenceVersioning.py
Log Message:
Make it a soft dependency on References.
=== Products/ZopeVersionControl/tests/testReferenceVersioning.py 1.2 => 1.3 ===
--- Products/ZopeVersionControl/tests/testReferenceVersioning.py:1.2 Mon Jan 19 15:29:08 2004
+++ Products/ZopeVersionControl/tests/testReferenceVersioning.py Mon May 3 11:25:03 2004
@@ -25,9 +25,13 @@
from Products.ZopeVersionControl.tests.testVersionControl \
import VersionControlTests
-from Products.References.PathReference import PathReference
from OFS.DTMLDocument import addDTMLDocument
+has_refs = 1
+try:
+ from Products.References.PathReference import PathReference
+except ImportError:
+ has_refs = 0
class ReferenceVCTests(unittest.TestCase):
@@ -111,7 +115,8 @@
def test_suite():
suite = unittest.TestSuite()
- suite.addTest(unittest.makeSuite(ReferenceVCTests))
+ if has_refs:
+ suite.addTest(unittest.makeSuite(ReferenceVCTests))
return suite
if __name__ == "__main__":
More information about the Zope-CVS
mailing list