Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
84b3cab2
Commit
84b3cab2
authored
May 10, 2013
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moar Py3k doctest normalization.
parent
3539498f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
src/ZODB/tests/testblob.py
src/ZODB/tests/testblob.py
+11
-1
No files found.
src/ZODB/tests/testblob.py
View file @
84b3cab2
...
@@ -722,8 +722,18 @@ def storage_reusable_suite(prefix, factory,
...
@@ -722,8 +722,18 @@ def storage_reusable_suite(prefix, factory,
"blob_transaction.txt"
,
"blob_transaction.txt"
,
setUp
=
setup
,
tearDown
=
zope
.
testing
.
setupstack
.
tearDown
,
setUp
=
setup
,
tearDown
=
zope
.
testing
.
setupstack
.
tearDown
,
checker
=
zope
.
testing
.
renormalizing
.
RENormalizing
([
checker
=
zope
.
testing
.
renormalizing
.
RENormalizing
([
(
re
.
compile
(
"POSKeyError: u'No blob file"
),
# Py3k renders bytes where Python2 used native strings...
(
re
.
compile
(
r"^b'"
),
"'"
),
(
re
.
compile
(
r'^b"'
),
'"'
),
# ...and native strings where Python2 used unicode.
(
re
.
compile
(
"^POSKeyError: u'No blob file"
),
"POSKeyError: 'No blob file"
),
"POSKeyError: 'No blob file"
),
# Py3k repr's exceptions with dotted names
(
re
.
compile
(
"^ZODB.interfaces.BlobError:"
),
"BlobError:"
),
(
re
.
compile
(
"^ZODB.POSException.ConflictError:"
),
"ConflictError:"
),
(
re
.
compile
(
"^ZODB.POSException.POSKeyError:"
),
"POSKeyError:"
),
(
re
.
compile
(
"^ZODB.POSException.Unsupported:"
),
"Unsupported:"
),
# Normalize out blobfile paths for sake of Windows
(
re
.
compile
(
(
re
.
compile
(
r'([a-zA-Z]:)?\
%(sep)s.*
\%(sep)sblobs\
%(sep)s.*
\.blob'
r'([a-zA-Z]:)?\
%(sep)s.*
\%(sep)sblobs\
%(sep)s.*
\.blob'
%
dict
(
sep
=
os
.
path
.
sep
)),
'<BLOB STORAGE PATH>'
)
%
dict
(
sep
=
os
.
path
.
sep
)),
'<BLOB STORAGE PATH>'
)
...
...
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