- 28 Oct, 2016 1 commit
-
-
Kirill Smelkov authored
_Tree.clear() is called by _Tree.__setstate__() to reset both .data and ._firstbucket before actually proceeding with setting internal state with data loaded from database. However since 0718a45e (Use a Python __reduce__ method to make pickles match C.) ._data reset became conditional, first checking that ._data is not already empty. The .__setstate__() is often called with object being a ghost. However ZODB was never promising to keep attributes alive on ghost objects and in fact attributes kept in __dict__ was always released, but attributes in slotted variables, probably due to overlook, started to be released on ghostification only recently: https://github.com/zopefoundation/persistent/commit/fe2219f4 https://github.com/zopefoundation/persistent/pull/44 and that change causes many BTree tests to fail in pure-python part, e.g.: ERROR: testGhostUnghost (BTrees.tests.test_IIBTree.IIBTreeTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "BTrees/tests/common.py", line 122, in testGhostUnghost self.assertEqual(list(root2[i].items()) , list(t.items())) File "/home/kirr/src/wendelin/z/persistent/persistent/persistence.py", line 266, in __getattribute__ oga(self, '_p_activate')() File "/home/kirr/src/wendelin/z/persistent/persistent/persistence.py", line 386, in _p_activate jar.setstate(self) File "/home/kirr/src/wendelin/z/ZODB/src/ZODB/Connection.py", line 771, in setstate self._reader.setGhostState(obj, p) File "/home/kirr/src/wendelin/z/ZODB/src/ZODB/serialize.py", line 623, in setGhostState obj.__setstate__(state) File "BTrees/_base.py", line 1069, in __setstate__ self.clear() File "BTrees/_base.py", line 818, in clear if self._data: File "/home/kirr/src/wendelin/z/persistent/persistent/persistence.py", line 268, in __getattribute__ return oga(self, name) AttributeError: _data Via unconditionally resetting ._data in clear we can make the problem go away. After this patch with PURE_PYTHON=1 BTree testsuite is passing fully again.
-
- 29 Sep, 2016 4 commits
-
-
Tres Seaver authored
Point the doc link to the rendered site.
-
Jason Madden authored
Mostly for PyPI benefit. [skip ci]
-
Tres Seaver authored
Add requirements file for RTD.
-
Jason Madden authored
-
- 04 Aug, 2016 1 commit
-
-
Jason Madden authored
More consistency between Python and C impls.
-
- 03 Aug, 2016 3 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
Fixes #42. See CHANGES.rst for details on what changes. Additional test cases cover the changed behaviour.
-
- 18 May, 2016 3 commits
-
-
Tres Seaver authored
build BTrees for 3.4
-
Forest Gregg authored
-
Tres Seaver authored
The wineggbuilder does that already. Eventually, we will drop building them altogether, and when we do, it will be easier to just decommission that machine.
-
- 16 May, 2016 3 commits
-
-
Tres Seaver authored
-
Tres Seaver authored
-
Tres Seaver authored
attempt to fix pypi password
-
- 15 May, 2016 1 commit
-
-
Forest Gregg authored
-
- 10 May, 2016 3 commits
-
-
Tres Seaver authored
-
Tres Seaver authored
-
Tres Seaver authored
-
- 20 Apr, 2016 1 commit
-
-
Adam Groszer authored
-
- 15 Apr, 2016 7 commits
-
-
Marius Gedminas authored
install zodb to make sure those dependent tests are run
-
Marius Gedminas authored
Use unittest.skip to skip tests
-
Marius Gedminas authored
This way skipped tests will be visible in the test runner output.
-
Forest Gregg authored
-
Tres Seaver authored
Add Travis and AppVeyor build badges
-
Tres Seaver authored
(Try to) fix appveyor build
-
Tres Seaver authored
Replace with 'PyLong_AsLongLongOverflow'. Toward a fix for #32.
-
- 14 Apr, 2016 8 commits
-
-
Forest Gregg authored
-
Forest Gregg authored
-
Forest Gregg authored
-
Forest Gregg authored
-
Forest Gregg authored
-
Tres Seaver authored
See: https://github.com/zopefoundation/BTrees/issues/32.
-
Tres Seaver authored
Don't use/poison global wheel cache when building w/ PURE_PYTHON.
-
Tres Seaver authored
-
- 13 Apr, 2016 2 commits
-
-
Marius Gedminas authored
-
Marius Gedminas authored
-
- 11 Apr, 2016 1 commit
-
-
Tres Seaver authored
Introduced in PR #20, they get tested via the 'py27-pure' tox environment.
-
- 05 Apr, 2016 1 commit
-
-
Marius Gedminas authored
build os x wheels and deploy to pypi
-
- 29 Mar, 2016 1 commit
-
-
Forest Gregg authored
-