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
Kirill Smelkov
ZODB
Commits
62c3e35f
Commit
62c3e35f
authored
Jun 15, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into no-more-load
Conflicts: setup.py src/ZODB/tests/synchronizers.txt
parents
b64344f8
ee942336
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
8 deletions
+27
-8
CHANGES.rst
CHANGES.rst
+7
-2
setup.py
setup.py
+1
-1
src/ZODB/tests/HistoryStorage.py
src/ZODB/tests/HistoryStorage.py
+5
-1
src/ZODB/tests/testFileStorage.py
src/ZODB/tests/testFileStorage.py
+14
-4
No files found.
CHANGES.rst
View file @
62c3e35f
...
...
@@ -2,7 +2,12 @@
Change History
================
4.3.0 (unreleased)
4.3.1 (2016-06-06)
==================
- Fixed: FileStorage loadBefore didn't handle deleted/undone data correctly.
4.3.0 (2016-05-31)
==================
- Drop support for Python 2.6 and 3.2.
...
...
@@ -29,7 +34,7 @@
- DemoStorage: add support for conflict resolution and fix history()
https://github.com/zopefoundation/ZODB/pull/58
- Fixed
: FileStorage loadBefore didn't handle deleted/undone data correctly.
- Fixed
a test that depended on implementation-specific behavior in tpc_finish
4.2.0 (2015-06-02)
==================
...
...
setup.py
View file @
62c3e35f
...
...
@@ -130,7 +130,7 @@ setup(name="ZODB",
license
=
"ZPL 2.1"
,
platforms
=
[
"any"
],
description
=
doclines
[
0
],
classifiers
=
filter
(
None
,
classifiers
.
split
(
"
\
n
"
)),
classifiers
=
list
(
filter
(
None
,
classifiers
.
split
(
"
\
n
"
)
)),
long_description
=
long_description
,
test_suite
=
"__main__.alltests"
,
# to support "setup.py test"
tests_require
=
tests_require
,
...
...
src/ZODB/tests/HistoryStorage.py
View file @
62c3e35f
...
...
@@ -17,7 +17,8 @@ Any storage that supports the history() method should be able to pass
all these tests.
"""
from
time
import
time
import
sys
from
time
import
time
,
sleep
from
ZODB.tests.MinPO
import
MinPO
class
HistoryStorage
:
...
...
@@ -31,6 +32,9 @@ class HistoryStorage:
self
.
assertRaises
(
KeyError
,
self
.
_storage
.
history
,
oid
)
revids
=
[
None
]
for
data
in
data
:
if
sys
.
platform
==
'win32'
:
# time.time() has a precision of 1ms on Windows.
sleep
(
0.001
)
revids
.
append
(
self
.
_dostore
(
oid
,
revids
[
-
1
],
MinPO
(
data
)))
revids
.
reverse
()
del
revids
[
-
1
]
...
...
src/ZODB/tests/testFileStorage.py
View file @
62c3e35f
...
...
@@ -15,6 +15,7 @@ import doctest
import
os
if
os
.
environ
.
get
(
'USE_ZOPE_TESTING_DOCTEST'
):
from
zope.testing
import
doctest
import
sys
import
unittest
import
transaction
import
ZODB.FileStorage
...
...
@@ -303,6 +304,15 @@ class FileStorageTests(
# is based on what was cached during the first load.
self
.
assertEqual
(
storage
.
load
(
z64
)[
0
],
b'foo'
if
fail
else
b'bar'
)
# We want to be sure that the above test detects any regression
# in the code it checks, because any bug here is like a time bomb: not
# obvious, hard to reproduce, with possible data corruption.
# It's even more important that FilePool.flush() is quite aggressive and
# we'd like to optimize it when Python gets an API to flush read buffers.
# Therefore, 'checkFlushAfterTruncate' is tested in turn by another unit
# test.
# On Windows, flushing explicitely is not (always?) necessary.
if
sys
.
platform
!=
'win32'
:
def
checkFlushNeededAfterTruncate
(
self
):
self
.
_storage
.
_files
.
flush
=
lambda
:
None
self
.
checkFlushAfterTruncate
(
True
)
...
...
@@ -390,7 +400,7 @@ class AnalyzeDotPyTest(StorageTestBase.StorageTestBase):
self
.
_storage
=
ZODB
.
FileStorage
.
FileStorage
(
"Source.fs"
,
create
=
True
)
def
checkanalyze
(
self
):
import
types
,
sys
import
types
from
BTrees.OOBTree
import
OOBTree
from
ZODB.scripts
import
analyze
...
...
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