- 20 Oct, 2018 2 commits
-
-
Jason Madden authored
Fixes #95 Built on #97 as they touch the same code.
-
Jason Madden authored
-
- 19 Oct, 2018 1 commit
-
-
Jason Madden authored
Fix the repr of the persistent objects to include the module name when using the C extension. This matches the pure-Python behaviour and the behaviour prior to 4.4.0. Fixes #92
-
- 28 Aug, 2018 4 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
Explicitly use unsigned hex literals when [un]packing timestamps.
-
Jason Madden authored
This should fix #86 Run a compiler with wrapv turned off to verify this.
-
- 27 Aug, 2018 2 commits
-
-
Marius Gedminas authored
Make test pass when run with 'tox'
-
Marius Gedminas authored
I used to get failures like py27 runtests: commands[0] | zope-testrunner --test-path=. Test-module import failures: Module: persistent.tests.test_docs IOError: [Errno 2] No such file or directory: '/home/mg/src/zopefoundation/persistent/.tox/docs/api/cache.rst' Running zope.testrunner.layer.UnitTests tests: Set up zope.testrunner.layer.UnitTests in 0.000 seconds. Ran 524 tests with 0 failures, 1 errors and 0 skipped in 0.249 seconds. Tearing down left over layers: Tear down zope.testrunner.layer.UnitTests in 0.000 seconds. Test-modules with import problems: persistent.tests.test_docs ERROR: InvocationError for command '/home/mg/src/zopefoundation/persistent/.tox/py27/bin/zope-testrunner --test-path=.' (exited with code 1) because adding a ../ at the end of the path is not the same as stripping off the last path component when symlinks are involved! $ cd .tox && ./py27/bin/python >>> >>> from persistent.tests.test_docs import __file__ >>> __file__ '/home/mg/src/zopefoundation/persistent/.tox/py27/local/lib/python2.7/site-packages/persistent/tests/test_docs.pyc' .tox/py27/local/lib is a symlink to /home/mg/src/zopefoundation/persistent/.tox/py27/lib and so .tox/py27/local/lib/.. is pointing to .tox/py27, while os.path.abspath() thinks it's pointing to .tox/py27/local. >>> import os >>> here = os.path.dirname(__file__) >>> while not os.path.exists(os.path.join(here, 'setup.py')): here = os.path.join(here, '..') ... >>> here '/home/mg/src/zopefoundation/persistent/.tox/py27/local/lib/python2.7/site-packages/persistent/tests/../../../../../../..' >>> os.path.abspath(here) '/home/mg/src/zopefoundation/persistent/.tox' >>> os.path.exists(os.path.join(here, 'setup.py')) True >>> os.path.exists(os.path.join(os.path.abspath(here), 'setup.py')) False >>> os.path.exists(os.path.abspath(os.path.join(here, 'setup.py'))) False
-
- 23 Aug, 2018 4 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
Fix wheel building for PyPy.
-
Jason Madden authored
Don't confuse ext_modules with headers. Fixes #88
-
- 22 Aug, 2018 2 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
- 18 Aug, 2018 8 commits
-
-
Jason Madden authored
Use unsigned constants for second arithmetic in C timestamp
-
Jason Madden authored
Rename SCONV in timestamp.py too, and change _UNSIGNED_ into _UINT32_ in C to better express the expected range.
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
Use names and 'functions' for the various constants and packing/unpacking operations for better readability.
-
Jason Madden authored
This might fix #86 I also find that it makes the data derivation/reconstruction more clear by making the powers-of-two factors more obvious.
-
Jason Madden authored
Make the C and Python TimeStamp round the same way
-
Jason Madden authored
Fixes #41. Starting with a test that failed. Don't touch the C code, just make the Python version round-trip through the bytes values like the C code does. This moves the truncation of the seconds value to microseconds to the timeTime accessor.
-
- 14 Aug, 2018 1 commit
-
-
Jason Madden authored
Include OID and jar in default repr of Persistent; let subclasses implement _p_repr for exception safety
-
- 02 Aug, 2018 4 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
- 01 Aug, 2018 4 commits
-
-
Jason Madden authored
Remove unneeded _compat._b/_u/_native.
-
Jason Madden authored
Also some minor DRY in test_picklecache.py Fixes #81.
-
Jason Madden authored
Reach 100% coverage
-
Jason Madden authored
[skip ci] Update PyPI links in readme. Fix typo in test_persistence.py
-
- 31 Jul, 2018 8 commits
-
-
Jason Madden authored
-
Jason Madden authored
Do this everywhere for simplicity. It slows PyPy down by 3x, but that should still only be around 4s.
-
Jason Madden authored
There are many fewer 'no cover' lines now. Remove the call to copy_reg.constructor---it doesn't do anything anymore except check that the object is callable, there is no registry. Also make timestamp support PURE_PYTHON.
-
Jason Madden authored
Remove the old workaround for a broken __cmp__.
-
Jason Madden authored
Two of the tests for _p_serial weren't catching what we thought they were.
-
Jason Madden authored
Deleted _makeOctets since we have native literals everywhere.
-
Jason Madden authored
-
Jason Madden authored
Two bug fixes for pure-Python mode: deleting _p_oid and deleting *any* _p attribute.
-