[Checkins] SVN: zc.copy/trunk/ - Added test extra to declare test dependency on ``zope.testing``.
Michael Howitz
mh at gocept.com
Wed Mar 2 02:56:44 EST 2011
Log message for revision 120666:
- Added test extra to declare test dependency on ``zope.testing``.
- Using Python's ``doctest`` module instead of depreacted
``zope.testing.doctest``.
Changed:
U zc.copy/trunk/CHANGES.txt
U zc.copy/trunk/buildout.cfg
U zc.copy/trunk/setup.py
U zc.copy/trunk/src/zc/copy/tests.py
-=-
Modified: zc.copy/trunk/CHANGES.txt
===================================================================
--- zc.copy/trunk/CHANGES.txt 2011-03-02 07:53:18 UTC (rev 120665)
+++ zc.copy/trunk/CHANGES.txt 2011-03-02 07:56:44 UTC (rev 120666)
@@ -5,8 +5,12 @@
1.3 (unreleased)
----------------
-- ...
+- Added test extra to declare test dependency on ``zope.testing``.
+- Using Python's ``doctest`` module instead of depreacted
+ ``zope.testing.doctest``.
+
+
1.2 (2009-02-09)
----------------
@@ -15,7 +19,7 @@
copy and clone functions as well as CopyPersistent helper class and
doesn't depend on either zope.copypastemove or even zope.location,
providing a pluggable object copying mechanism zc.copy used to provide.
-
+
Now, this package only contains backward-compatibility imports.
1.1 (2009-02-09)
@@ -29,4 +33,4 @@
1.1b (unknown)
--------------
-- Converted to eggs
+- Converted to eggs.
Modified: zc.copy/trunk/buildout.cfg
===================================================================
--- zc.copy/trunk/buildout.cfg 2011-03-02 07:53:18 UTC (rev 120665)
+++ zc.copy/trunk/buildout.cfg 2011-03-02 07:56:44 UTC (rev 120666)
@@ -4,4 +4,4 @@
[test]
recipe = zc.recipe.testrunner
-eggs = zc.copy
+eggs = zc.copy [test]
Modified: zc.copy/trunk/setup.py
===================================================================
--- zc.copy/trunk/setup.py 2011-03-02 07:53:18 UTC (rev 120665)
+++ zc.copy/trunk/setup.py 2011-03-02 07:56:44 UTC (rev 120666)
@@ -9,10 +9,14 @@
'zope.copypastemove>=3.5.1',
'zope.location>=3.5.3',
],
+ extras_require=dict(
+ test=[
+ 'zope.testing',
+ ]),
packages=find_packages('src'),
include_package_data=True,
package_dir= {'':'src'},
-
+
namespace_packages=['zc'],
zip_safe=False,
Modified: zc.copy/trunk/src/zc/copy/tests.py
===================================================================
--- zc.copy/trunk/src/zc/copy/tests.py 2011-03-02 07:53:18 UTC (rev 120665)
+++ zc.copy/trunk/src/zc/copy/tests.py 2011-03-02 07:56:44 UTC (rev 120666)
@@ -1,20 +1,18 @@
import unittest
-from zope.testing import doctest
+import doctest
def test_imports():
'''
This tests that old imports still work as the main purpose of this
package now is to provide backward-compatibility.
-
+
>>> from zc.copy import clone, copy, CopyPersistent
>>> from zc.copy import location_copyfactory, ObjectCopier
-
+
>>> from zc.copy.interfaces import ICopyHook, ResumeCopy
-
+
No ImportErrors should be raised.
'''
def test_suite():
- return unittest.TestSuite((
- doctest.DocTestSuite(),
- ))
+ return doctest.DocTestSuite()
More information about the checkins
mailing list