Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
1f9ba57d
Commit
1f9ba57d
authored
Mar 15, 2013
by
Albertas Agejevas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add compatibility with Py2 back.
parent
ec9bafb3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
src/ZEO/scripts/tests.py
src/ZEO/scripts/tests.py
+3
-1
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+15
-8
src/ZEO/tests/testZEO2.py
src/ZEO/tests/testZEO2.py
+1
-0
No files found.
src/ZEO/scripts/tests.py
View file @
1f9ba57d
...
...
@@ -11,6 +11,7 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
from
__future__
import
print_function
import
doctest
,
re
,
unittest
from
zope.testing
import
renormalizing
...
...
@@ -21,7 +22,8 @@ def test_suite():
checker
=
renormalizing
.
RENormalizing
([
(
re
.
compile
(
'usage: Usage: '
),
'Usage: '
),
# Py 2.4
(
re
.
compile
(
'options:'
),
'Options:'
),
# Py 2.4
])
]),
globs
=
{
'print_function'
:
print_function
},
),
))
src/ZEO/tests/testZEO.py
View file @
1f9ba57d
...
...
@@ -20,6 +20,7 @@ from ZEO.tests.forker import get_port
from
ZEO.tests
import
forker
,
Cache
,
CommitLockTests
,
ThreadTests
from
ZEO.tests
import
IterationTests
from
ZEO.zrpc.error
import
DisconnectedError
from
ZEO._compat
import
PY3
from
ZODB.tests
import
StorageTestBase
,
BasicStorage
,
\
TransactionalUndoStorage
,
\
PackableStorage
,
Synchronization
,
ConflictResolution
,
RevisionStorage
,
\
...
...
@@ -1756,15 +1757,18 @@ def test_suite():
# unit test layer
zeo
=
unittest
.
TestSuite
()
zeo
.
addTest
(
unittest
.
makeSuite
(
ZODB
.
tests
.
util
.
AAAA_Test_Runner_Hack
))
zeo
.
addTest
(
doctest
.
DocTestSuite
(
setUp
=
forker
.
setUp
,
tearDown
=
zope
.
testing
.
setupstack
.
tearDown
,
checker
=
renormalizing
.
RENormalizing
([
patterns
=
[
(
re
.
compile
(
r"'start': '[^\n]+'"
),
'start'
),
(
re
.
compile
(
"ZODB.POSException.ConflictError"
),
"ConflictError"
),
(
re
.
compile
(
"ZODB.POSException.POSKeyError"
),
"POSKeyError"
),
(
re
.
compile
(
"ZEO.Exceptions.ClientStorageError"
),
"ClientStorageError"
),
]),
(
re
.
compile
(
"ZEO.Exceptions.ClientStorageError"
),
"ClientStorageError"
),
]
if
not
PY3
:
patterns
.
append
((
re
.
compile
(
"^'(blob[^']*)'"
),
r"b'\1'"
))
patterns
.
append
((
re
.
compile
(
"^'Z308'"
),
"b'Z308'"
))
zeo
.
addTest
(
doctest
.
DocTestSuite
(
setUp
=
forker
.
setUp
,
tearDown
=
zope
.
testing
.
setupstack
.
tearDown
,
checker
=
renormalizing
.
RENormalizing
(
patterns
),
))
zeo
.
addTest
(
doctest
.
DocTestSuite
(
ZEO
.
tests
.
IterationTests
,
...
...
@@ -1774,7 +1778,8 @@ def test_suite():
"ClientDisconnected"
),
)),
))
zeo
.
addTest
(
doctest
.
DocFileSuite
(
'registerDB.test'
))
zeo
.
addTest
(
doctest
.
DocFileSuite
(
'registerDB.test'
,
globs
=
{
'print_function'
:
print_function
}))
zeo
.
addTest
(
doctest
.
DocFileSuite
(
'zeo-fan-out.test'
,
'zdoptions.test'
,
...
...
@@ -1782,6 +1787,8 @@ def test_suite():
'protocols.test'
,
'zeo_blob_cache.test'
,
'invalidation-age.txt'
,
'dynamic_server_ports.test'
,
'new_addr.test'
,
setUp
=
forker
.
setUp
,
tearDown
=
zope
.
testing
.
setupstack
.
tearDown
,
checker
=
renormalizing
.
RENormalizing
(
patterns
),
globs
=
{
'print_function'
:
print_function
},
),
)
zeo
.
addTest
(
PackableStorage
.
IExternalGC_suite
(
...
...
src/ZEO/tests/testZEO2.py
View file @
1f9ba57d
...
...
@@ -11,6 +11,7 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
from
__future__
import
print_function
from
zope.testing
import
setupstack
,
renormalizing
import
doctest
import
logging
...
...
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