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
b427bb74
Commit
b427bb74
authored
Apr 01, 2005
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use newer doctest
parent
0abbea6b
Changes
30
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
31 additions
and
56 deletions
+31
-56
lib/python/AccessControl/tests/testZopeSecurityPolicy.py
lib/python/AccessControl/tests/testZopeSecurityPolicy.py
+1
-1
lib/python/Acquisition/tests.py
lib/python/Acquisition/tests.py
+1
-1
lib/python/ComputedAttribute/tests.py
lib/python/ComputedAttribute/tests.py
+1
-1
lib/python/ExtensionClass/tests.py
lib/python/ExtensionClass/tests.py
+1
-1
lib/python/MethodObject/tests.py
lib/python/MethodObject/tests.py
+1
-1
lib/python/Missing/tests.py
lib/python/Missing/tests.py
+1
-1
lib/python/MultiMapping/tests.py
lib/python/MultiMapping/tests.py
+1
-1
lib/python/Persistence/tests/test_ExtensionClass.py
lib/python/Persistence/tests/test_ExtensionClass.py
+1
-1
lib/python/Persistence/tests/test_mapping.py
lib/python/Persistence/tests/test_mapping.py
+1
-1
lib/python/Record/tests.py
lib/python/Record/tests.py
+1
-1
lib/python/ThreadLock/tests.py
lib/python/ThreadLock/tests.py
+1
-1
lib/python/ZODB/tests/sampledm.py
lib/python/ZODB/tests/sampledm.py
+1
-1
lib/python/ZODB/tests/testBroken.py
lib/python/ZODB/tests/testBroken.py
+1
-1
lib/python/ZODB/tests/testConnection.py
lib/python/ZODB/tests/testConnection.py
+1
-1
lib/python/ZODB/tests/testFileStorage.py
lib/python/ZODB/tests/testFileStorage.py
+1
-1
lib/python/ZODB/tests/testSerialize.py
lib/python/ZODB/tests/testSerialize.py
+1
-1
lib/python/ZODB/tests/testSubTransaction.py
lib/python/ZODB/tests/testSubTransaction.py
+1
-1
lib/python/ZODB/tests/test_cache.py
lib/python/ZODB/tests/test_cache.py
+1
-1
lib/python/ZODB/tests/test_datamanageradapter.py
lib/python/ZODB/tests/test_datamanageradapter.py
+1
-1
lib/python/ZODB/tests/testmvcc.py
lib/python/ZODB/tests/testmvcc.py
+1
-1
lib/python/ZPublisher/tests/testPublish.py
lib/python/ZPublisher/tests/testPublish.py
+1
-1
lib/python/persistent/tests/test_PickleCache.py
lib/python/persistent/tests/test_PickleCache.py
+1
-1
lib/python/persistent/tests/test_overriding_attrs.py
lib/python/persistent/tests/test_overriding_attrs.py
+1
-1
lib/python/persistent/tests/test_persistent.py
lib/python/persistent/tests/test_persistent.py
+2
-27
lib/python/persistent/tests/test_pickle.py
lib/python/persistent/tests/test_pickle.py
+1
-1
lib/python/persistent/tests/test_wref.py
lib/python/persistent/tests/test_wref.py
+1
-1
lib/python/transaction/tests/test_SampleDataManager.py
lib/python/transaction/tests/test_SampleDataManager.py
+1
-1
lib/python/transaction/tests/test_register_compat.py
lib/python/transaction/tests/test_register_compat.py
+1
-1
lib/python/transaction/tests/test_transaction.py
lib/python/transaction/tests/test_transaction.py
+1
-1
lib/python/transaction/tests/test_util.py
lib/python/transaction/tests/test_util.py
+1
-1
No files found.
lib/python/AccessControl/tests/testZopeSecurityPolicy.py
View file @
b427bb74
...
@@ -495,7 +495,7 @@ def test_zsp_gets_right_roles_for_methods():
...
@@ -495,7 +495,7 @@ def test_zsp_gets_right_roles_for_methods():
"""
"""
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
...
...
lib/python/Acquisition/tests.py
View file @
b427bb74
...
@@ -1527,7 +1527,7 @@ def showaq(m_self, indent=''):
...
@@ -1527,7 +1527,7 @@ def showaq(m_self, indent=''):
import
unittest
import
unittest
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
def
test_suite
():
def
test_suite
():
return
unittest
.
TestSuite
((
return
unittest
.
TestSuite
((
...
...
lib/python/ComputedAttribute/tests.py
View file @
b427bb74
...
@@ -66,7 +66,7 @@ def test_wrapper_support():
...
@@ -66,7 +66,7 @@ def test_wrapper_support():
"""
"""
import
unittest
import
unittest
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
from
ExtensionClass
import
Base
from
ExtensionClass
import
Base
from
ComputedAttribute
import
ComputedAttribute
from
ComputedAttribute
import
ComputedAttribute
...
...
lib/python/ExtensionClass/tests.py
View file @
b427bb74
...
@@ -737,7 +737,7 @@ def test___of___w_metaclass_instance():
...
@@ -737,7 +737,7 @@ def test___of___w_metaclass_instance():
"""
"""
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
import
unittest
import
unittest
def
test_suite
():
def
test_suite
():
...
...
lib/python/MethodObject/tests.py
View file @
b427bb74
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
$Id$
$Id$
"""
"""
import
unittest
import
unittest
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
def
test_xxx
():
def
test_xxx
():
"""
"""
...
...
lib/python/Missing/tests.py
View file @
b427bb74
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
$Id$
$Id$
"""
"""
import
unittest
import
unittest
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
def
test_suite
():
def
test_suite
():
return
unittest
.
TestSuite
((
return
unittest
.
TestSuite
((
...
...
lib/python/MultiMapping/tests.py
View file @
b427bb74
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
$Id$
$Id$
"""
"""
import
unittest
import
unittest
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
def
test_suite
():
def
test_suite
():
return
unittest
.
TestSuite
((
return
unittest
.
TestSuite
((
...
...
lib/python/Persistence/tests/test_ExtensionClass.py
View file @
b427bb74
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
$Id$
$Id$
"""
"""
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
import
pickle
import
pickle
from
Persistence
import
Persistent
from
Persistence
import
Persistent
...
...
lib/python/Persistence/tests/test_mapping.py
View file @
b427bb74
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
$Id$
$Id$
"""
"""
import
unittest
import
unittest
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
from
Persistence
import
PersistentMapping
from
Persistence
import
PersistentMapping
def
test_basic_functionality
():
def
test_basic_functionality
():
...
...
lib/python/Record/tests.py
View file @
b427bb74
...
@@ -39,7 +39,7 @@ def test_RecordPickling():
...
@@ -39,7 +39,7 @@ def test_RecordPickling():
"""
"""
import
unittest
import
unittest
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
def
test_suite
():
def
test_suite
():
return
unittest
.
TestSuite
((
return
unittest
.
TestSuite
((
...
...
lib/python/ThreadLock/tests.py
View file @
b427bb74
...
@@ -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
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
def
test_suite
():
def
test_suite
():
return
unittest
.
TestSuite
((
return
unittest
.
TestSuite
((
...
...
lib/python/ZODB/tests/sampledm.py
View file @
b427bb74
...
@@ -405,7 +405,7 @@ class Rollback(object):
...
@@ -405,7 +405,7 @@ class Rollback(object):
def
test_suite
():
def
test_suite
():
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
return
DocTestSuite
()
return
DocTestSuite
()
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
lib/python/ZODB/tests/testBroken.py
View file @
b427bb74
...
@@ -20,7 +20,7 @@ import sys
...
@@ -20,7 +20,7 @@ import sys
import
unittest
import
unittest
import
persistent
import
persistent
import
transaction
import
transaction
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
from
ZODB.tests.util
import
DB
from
ZODB.tests.util
import
DB
def
test_integration
():
def
test_integration
():
...
...
lib/python/ZODB/tests/testConnection.py
View file @
b427bb74
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
##############################################################################
##############################################################################
"""Unit tests for the Connection class."""
"""Unit tests for the Connection class."""
import
doctest
from
zope.testing
import
doctest
import
unittest
import
unittest
import
warnings
import
warnings
...
...
lib/python/ZODB/tests/testFileStorage.py
View file @
b427bb74
...
@@ -350,7 +350,7 @@ def testTimeTravelOnOpen():
...
@@ -350,7 +350,7 @@ def testTimeTravelOnOpen():
"""
"""
def
test_suite
():
def
test_suite
():
import
doctest
from
zope.testing
import
doctest
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
for
klass
in
[
FileStorageTests
,
Corruption
.
FileStorageCorruptTests
,
for
klass
in
[
FileStorageTests
,
Corruption
.
FileStorageCorruptTests
,
...
...
lib/python/ZODB/tests/testSerialize.py
View file @
b427bb74
...
@@ -118,7 +118,7 @@ class SerializerTestCase(unittest.TestCase):
...
@@ -118,7 +118,7 @@ class SerializerTestCase(unittest.TestCase):
def
test_suite
():
def
test_suite
():
import
doctest
from
zope.testing
import
doctest
suite
=
unittest
.
makeSuite
(
SerializerTestCase
)
suite
=
unittest
.
makeSuite
(
SerializerTestCase
)
suite
.
addTest
(
doctest
.
DocTestSuite
(
"ZODB.serialize"
))
suite
.
addTest
(
doctest
.
DocTestSuite
(
"ZODB.serialize"
))
return
suite
return
suite
lib/python/ZODB/tests/testSubTransaction.py
View file @
b427bb74
...
@@ -132,7 +132,7 @@ database state as of the last sub-transaction commit. There is
...
@@ -132,7 +132,7 @@ database state as of the last sub-transaction commit. There is
"""
"""
import
doctest
from
zope.testing
import
doctest
def
test_suite
():
def
test_suite
():
return
doctest
.
DocTestSuite
()
return
doctest
.
DocTestSuite
()
lib/python/ZODB/tests/test_cache.py
View file @
b427bb74
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
##############################################################################
##############################################################################
"""Test behavior of Connection plus cPickleCache."""
"""Test behavior of Connection plus cPickleCache."""
import
doctest
from
zope.testing
import
doctest
from
persistent
import
Persistent
from
persistent
import
Persistent
import
transaction
import
transaction
...
...
lib/python/ZODB/tests/test_datamanageradapter.py
View file @
b427bb74
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
$Id$
$Id$
"""
"""
import
unittest
import
unittest
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
from
transaction._transaction
import
DataManagerAdapter
from
transaction._transaction
import
DataManagerAdapter
from
ZODB.tests.sampledm
import
DataManager
from
ZODB.tests.sampledm
import
DataManager
...
...
lib/python/ZODB/tests/testmvcc.py
View file @
b427bb74
...
@@ -358,7 +358,7 @@ clearing the Connection's local transaction.
...
@@ -358,7 +358,7 @@ clearing the Connection's local transaction.
"""
"""
import
doctest
from
zope.testing
import
doctest
def
test_suite
():
def
test_suite
():
return
doctest
.
DocTestSuite
()
return
doctest
.
DocTestSuite
()
lib/python/ZPublisher/tests/testPublish.py
View file @
b427bb74
...
@@ -267,7 +267,7 @@ def testPublisher():
...
@@ -267,7 +267,7 @@ def testPublisher():
pass
pass
import
doctest
from
zope.testing
import
doctest
def
test_suite
():
def
test_suite
():
return
doctest
.
DocTestSuite
()
return
doctest
.
DocTestSuite
()
lib/python/persistent/tests/test_PickleCache.py
View file @
b427bb74
...
@@ -40,7 +40,7 @@ def test_delitem():
...
@@ -40,7 +40,7 @@ def test_delitem():
"""
"""
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
import
unittest
import
unittest
def
test_suite
():
def
test_suite
():
...
...
lib/python/persistent/tests/test_overriding_attrs.py
View file @
b427bb74
...
@@ -398,5 +398,5 @@ class SampleOverridingGetattributeSetattrAndDelattr(Persistent):
...
@@ -398,5 +398,5 @@ class SampleOverridingGetattributeSetattrAndDelattr(Persistent):
def
test_suite
():
def
test_suite
():
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
return
DocTestSuite
()
return
DocTestSuite
()
lib/python/persistent/tests/test_persistent.py
View file @
b427bb74
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# FOR A PARTICULAR PURPOSE.
# FOR A PARTICULAR PURPOSE.
#
#
##############################################################################
##############################################################################
import
doctest
from
zope.testing
import
doctest
import
os
import
os
import
sys
import
sys
import
unittest
import
unittest
...
@@ -25,30 +25,5 @@ class P(Persistent):
...
@@ -25,30 +25,5 @@ class P(Persistent):
def
inc
(
self
):
def
inc
(
self
):
self
.
x
+=
1
self
.
x
+=
1
try
:
DocFileSuite
=
doctest
.
DocFileSuite
# >= Python 2.4.0a2
except
AttributeError
:
# <= Python 2.4.0a1
def
DocFileSuite
(
path
,
globs
=
None
):
# It's not entirely obvious how to connection this single string
# with unittest. For now, re-use the _utest() function that comes
# standard with doctest in Python 2.3. One problem is that the
# error indicator doesn't point to the line of the doctest file
# that failed.
path
=
os
.
path
.
join
(
persistent
.
tests
.
__path__
[
0
],
path
)
source
=
open
(
path
).
read
()
if
globs
is
None
:
globs
=
sys
.
_getframe
(
1
).
f_globals
t
=
doctest
.
Tester
(
globs
=
globs
)
def
runit
():
doctest
.
_utest
(
t
,
path
,
source
,
path
,
0
)
f
=
unittest
.
FunctionTestCase
(
runit
,
description
=
"doctest from %s"
%
path
)
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
f
)
return
suite
def
test_suite
():
def
test_suite
():
return
DocFileSuite
(
"persistent.txt"
,
globs
=
{
"P"
:
P
})
return
doctest
.
DocFileSuite
(
"persistent.txt"
,
globs
=
{
"P"
:
P
})
lib/python/persistent/tests/test_pickle.py
View file @
b427bb74
...
@@ -276,7 +276,7 @@ def test_pickling_w_slots_w_empty_dict():
...
@@ -276,7 +276,7 @@ def test_pickling_w_slots_w_empty_dict():
"""
"""
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
import
unittest
import
unittest
def
test_suite
():
def
test_suite
():
...
...
lib/python/persistent/tests/test_wref.py
View file @
b427bb74
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
$Id$
$Id$
"""
"""
import
unittest
import
unittest
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
def
test_suite
():
def
test_suite
():
return
DocTestSuite
(
'persistent.wref'
)
return
DocTestSuite
(
'persistent.wref'
)
...
...
lib/python/transaction/tests/test_SampleDataManager.py
View file @
b427bb74
...
@@ -405,7 +405,7 @@ class Rollback(object):
...
@@ -405,7 +405,7 @@ class Rollback(object):
def
test_suite
():
def
test_suite
():
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
return
DocTestSuite
()
return
DocTestSuite
()
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
lib/python/transaction/tests/test_register_compat.py
View file @
b427bb74
...
@@ -148,7 +148,7 @@ class TestConnection:
...
@@ -148,7 +148,7 @@ class TestConnection:
obj
.
abort
()
obj
.
abort
()
self
.
aborted
.
append
(
obj
)
self
.
aborted
.
append
(
obj
)
import
doctest
from
zope.testing
import
doctest
def
test_suite
():
def
test_suite
():
return
doctest
.
DocTestSuite
()
return
doctest
.
DocTestSuite
()
lib/python/transaction/tests/test_transaction.py
View file @
b427bb74
...
@@ -636,7 +636,7 @@ def test_join():
...
@@ -636,7 +636,7 @@ def test_join():
"""
"""
def
test_suite
():
def
test_suite
():
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
return
unittest
.
TestSuite
((
return
unittest
.
TestSuite
((
DocTestSuite
(),
DocTestSuite
(),
unittest
.
makeSuite
(
TransactionTests
),
unittest
.
makeSuite
(
TransactionTests
),
...
...
lib/python/transaction/tests/test_util.py
View file @
b427bb74
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
$Id$
$Id$
"""
"""
import
unittest
import
unittest
from
doctest
import
DocTestSuite
from
zope.testing.
doctest
import
DocTestSuite
def
test_suite
():
def
test_suite
():
return
DocTestSuite
(
'transaction.util'
)
return
DocTestSuite
(
'transaction.util'
)
...
...
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