Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
002c497f
Commit
002c497f
authored
Mar 27, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the standard libraries doctest module in favor of the deprecated version in zope.testing
parent
b505fb29
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
24 additions
and
21 deletions
+24
-21
doc/CHANGES.rst
doc/CHANGES.rst
+3
-0
src/AccessControl/tests/testZopeGuards.py
src/AccessControl/tests/testZopeGuards.py
+1
-1
src/AccessControl/tests/testZopeSecurityPolicy.py
src/AccessControl/tests/testZopeSecurityPolicy.py
+1
-1
src/App/tests/test_class_init.py
src/App/tests/test_class_init.py
+1
-1
src/Missing/tests.py
src/Missing/tests.py
+1
-1
src/MultiMapping/tests.py
src/MultiMapping/tests.py
+1
-1
src/OFS/tests/test_event.py
src/OFS/tests/test_event.py
+1
-1
src/Products/Five/browser/tests/test_decode.py
src/Products/Five/browser/tests/test_decode.py
+1
-1
src/Products/Five/browser/tests/test_i18n.py
src/Products/Five/browser/tests/test_i18n.py
+1
-1
src/Products/Five/browser/tests/test_zope3security.py
src/Products/Five/browser/tests/test_zope3security.py
+1
-1
src/Products/Five/component/tests.py
src/Products/Five/component/tests.py
+1
-1
src/Products/Five/tests/test_i18n.py
src/Products/Five/tests/test_i18n.py
+1
-1
src/Testing/ZopeTestCase/zopedoctest/__init__.py
src/Testing/ZopeTestCase/zopedoctest/__init__.py
+1
-3
src/Testing/ZopeTestCase/zopedoctest/functional.py
src/Testing/ZopeTestCase/zopedoctest/functional.py
+5
-4
src/ThreadLock/tests.py
src/ThreadLock/tests.py
+1
-1
src/ZPublisher/tests/testBeforeTraverse.py
src/ZPublisher/tests/testBeforeTraverse.py
+2
-1
src/ZPublisher/tests/testPublish.py
src/ZPublisher/tests/testPublish.py
+1
-1
No files found.
doc/CHANGES.rst
View file @
002c497f
...
@@ -11,6 +11,9 @@ Trunk (unreleased)
...
@@ -11,6 +11,9 @@ Trunk (unreleased)
Restructuring
Restructuring
+++++++++++++
+++++++++++++
-
Use
the
standard
libraries
doctest
module
in
favor
of
the
deprecated
version
in
zope
.
testing
.
-
Finished
the
move
of
five
.
formlib
to
an
extra
package
and
removed
it
from
-
Finished
the
move
of
five
.
formlib
to
an
extra
package
and
removed
it
from
Zope
2
itself
.
Upgrade
notes
have
been
added
to
the
news
section
of
the
Zope
2
itself
.
Upgrade
notes
have
been
added
to
the
news
section
of
the
release
notes
.
release
notes
.
...
...
src/AccessControl/tests/testZopeGuards.py
View file @
002c497f
...
@@ -17,13 +17,13 @@ Well, at least begin testing some of the functionality
...
@@ -17,13 +17,13 @@ Well, at least begin testing some of the functionality
$Id$
$Id$
"""
"""
import
doctest
import
unittest
import
unittest
import
os
import
os
import
operator
import
operator
import
sys
import
sys
from
zope.testing
import
doctest
import
ZODB
import
ZODB
...
...
src/AccessControl/tests/testZopeSecurityPolicy.py
View file @
002c497f
...
@@ -574,7 +574,7 @@ def test_zsp_gets_right_roles_for_methods():
...
@@ -574,7 +574,7 @@ def test_zsp_gets_right_roles_for_methods():
"""
"""
from
zope.testing.
doctest
import
DocTestSuite
from
doctest
import
DocTestSuite
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
...
...
src/App/tests/test_class_init.py
View file @
002c497f
...
@@ -31,7 +31,7 @@ def test_InitializeClass():
...
@@ -31,7 +31,7 @@ def test_InitializeClass():
>>> InitializeClass(C)
>>> InitializeClass(C)
"""
"""
from
zope.testing.
doctest
import
DocTestSuite
from
doctest
import
DocTestSuite
import
unittest
import
unittest
def
test_suite
():
def
test_suite
():
...
...
src/Missing/tests.py
View file @
002c497f
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
$Id$
$Id$
"""
"""
import
unittest
import
unittest
from
zope.testing.
doctest
import
DocTestSuite
from
doctest
import
DocTestSuite
def
test_suite
():
def
test_suite
():
return
unittest
.
TestSuite
((
return
unittest
.
TestSuite
((
...
...
src/MultiMapping/tests.py
View file @
002c497f
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
$Id$
$Id$
"""
"""
import
unittest
import
unittest
from
zope.testing.
doctest
import
DocTestSuite
from
doctest
import
DocTestSuite
def
test_suite
():
def
test_suite
():
return
unittest
.
TestSuite
((
return
unittest
.
TestSuite
((
...
...
src/OFS/tests/test_event.py
View file @
002c497f
...
@@ -83,6 +83,6 @@ class MyNewFolder(DontComplain, Folder):
...
@@ -83,6 +83,6 @@ class MyNewFolder(DontComplain, Folder):
def
test_suite
():
def
test_suite
():
from
zope.testing.
doctest
import
DocFileSuite
from
doctest
import
DocFileSuite
return
DocFileSuite
(
'event.txt'
,
package
=
"OFS.tests"
,
return
DocFileSuite
(
'event.txt'
,
package
=
"OFS.tests"
,
setUp
=
setUp
,
tearDown
=
testing
.
tearDown
)
setUp
=
setUp
,
tearDown
=
testing
.
tearDown
)
src/Products/Five/browser/tests/test_decode.py
View file @
002c497f
...
@@ -49,5 +49,5 @@ def test_processInputs():
...
@@ -49,5 +49,5 @@ def test_processInputs():
"""
"""
def
test_suite
():
def
test_suite
():
from
zope.testing.
doctest
import
DocTestSuite
from
doctest
import
DocTestSuite
return
DocTestSuite
()
return
DocTestSuite
()
src/Products/Five/browser/tests/test_i18n.py
View file @
002c497f
...
@@ -86,5 +86,5 @@ def test_zpt_i18n():
...
@@ -86,5 +86,5 @@ def test_zpt_i18n():
def
test_suite
():
def
test_suite
():
from
Testing.ZopeTestCase
import
FunctionalDocTestSuite
from
Testing.ZopeTestCase
import
FunctionalDocTestSuite
from
zope.testing.
doctest
import
ELLIPSIS
from
doctest
import
ELLIPSIS
return
FunctionalDocTestSuite
(
optionflags
=
ELLIPSIS
)
return
FunctionalDocTestSuite
(
optionflags
=
ELLIPSIS
)
src/Products/Five/browser/tests/test_zope3security.py
View file @
002c497f
...
@@ -129,5 +129,5 @@ def test_allowed_interface():
...
@@ -129,5 +129,5 @@ def test_allowed_interface():
def
test_suite
():
def
test_suite
():
from
Testing.ZopeTestCase
import
FunctionalDocTestSuite
from
Testing.ZopeTestCase
import
FunctionalDocTestSuite
from
zope.testing.
doctest
import
ELLIPSIS
from
doctest
import
ELLIPSIS
return
FunctionalDocTestSuite
(
optionflags
=
ELLIPSIS
)
return
FunctionalDocTestSuite
(
optionflags
=
ELLIPSIS
)
src/Products/Five/component/tests.py
View file @
002c497f
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
$Id$
$Id$
"""
"""
import
unittest
import
unittest
from
zope.testing.doctestuni
t
import
DocFileSuite
from
doctes
t
import
DocFileSuite
from
Testing.ZopeTestCase
import
FunctionalDocFileSuite
from
Testing.ZopeTestCase
import
FunctionalDocFileSuite
__docformat__
=
"reStructuredText"
__docformat__
=
"reStructuredText"
...
...
src/Products/Five/tests/test_i18n.py
View file @
002c497f
...
@@ -55,5 +55,5 @@ def test_directive():
...
@@ -55,5 +55,5 @@ def test_directive():
def
test_suite
():
def
test_suite
():
from
zope.testing.
doctest
import
DocTestSuite
from
doctest
import
DocTestSuite
return
DocTestSuite
(
setUp
=
setUp
,
tearDown
=
tearDown
)
return
DocTestSuite
(
setUp
=
setUp
,
tearDown
=
tearDown
)
src/Testing/ZopeTestCase/zopedoctest/__init__.py
View file @
002c497f
...
@@ -15,7 +15,5 @@
...
@@ -15,7 +15,5 @@
$Id$
$Id$
"""
"""
from
zope.testing.doctest
import
*
from
doctest
import
*
from
zope.testing.doctest
import
_normalize_module
from
functional
import
*
from
functional
import
*
src/Testing/ZopeTestCase/zopedoctest/functional.py
View file @
002c497f
...
@@ -15,11 +15,13 @@
...
@@ -15,11 +15,13 @@
$Id$
$Id$
"""
"""
import
sys
,
re
,
base64
import
base64
import
doctest
import
re
import
sys
import
warnings
import
warnings
import
transaction
from
zope.testing
import
doctest
import
transaction
from
Testing.ZopeTestCase
import
ZopeTestCase
from
Testing.ZopeTestCase
import
ZopeTestCase
from
Testing.ZopeTestCase
import
FunctionalTestCase
from
Testing.ZopeTestCase
import
FunctionalTestCase
...
@@ -93,7 +95,6 @@ basicre = re.compile('Basic (.+)?:(.+)?$')
...
@@ -93,7 +95,6 @@ basicre = re.compile('Basic (.+)?:(.+)?$')
def auth_header(header):
def auth_header(header):
match = basicre.match(header)
match = basicre.match(header)
if match:
if match:
import base64
u, p = match.group(1, 2)
u, p = match.group(1, 2)
if u is None:
if u is None:
u = ''
u = ''
...
...
src/ThreadLock/tests.py
View file @
002c497f
...
@@ -57,7 +57,7 @@ $Id: tests.py,v 1.2 2003/11/28 16:46:39 jim Exp $
...
@@ -57,7 +57,7 @@ $Id: tests.py,v 1.2 2003/11/28 16:46:39 jim Exp $
import
ThreadLock
,
threading
,
time
import
ThreadLock
,
threading
,
time
import
unittest
import
unittest
from
zope.testing.
doctest
import
DocTestSuite
from
doctest
import
DocTestSuite
def
test_suite
():
def
test_suite
():
return
unittest
.
TestSuite
((
return
unittest
.
TestSuite
((
...
...
src/ZPublisher/tests/testBeforeTraverse.py
View file @
002c497f
...
@@ -133,7 +133,8 @@ def testBeforeTraverse(self):
...
@@ -133,7 +133,8 @@ def testBeforeTraverse(self):
"""
"""
pass
pass
from
zope.testing
import
doctest
import
doctest
def
test_suite
():
def
test_suite
():
return
doctest
.
DocTestSuite
(
optionflags
=
doctest
.
ELLIPSIS
)
return
doctest
.
DocTestSuite
(
optionflags
=
doctest
.
ELLIPSIS
)
src/ZPublisher/tests/testPublish.py
View file @
002c497f
...
@@ -391,7 +391,7 @@ def testPublishPath():
...
@@ -391,7 +391,7 @@ def testPublishPath():
pass
pass
from
zope.testing
import
doctest
import
doctest
def
test_suite
():
def
test_suite
():
return
doctest
.
DocTestSuite
()
return
doctest
.
DocTestSuite
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment