forked from pool/python-ZODB
- Add patch to fix testsuite execution: * python-ZODB-testsuite.patch - Version update to 5.4.0: * Dropped support for py3.3 and added support for new ones * ZODB now uses pickle protocol 3 for both Python 2 and Python 3. * The zodbpickle package provides a zodbpickle.binary string type that should be used in Python 2 to cause binary strings to be saved in a pickle binary format, so they can be loaded correctly in Python 3. Pickle protocol 3 is needed for this to work correctly. * Object identifiers in persistent references are saved as zodbpickle.binary strings in Python 2, so that they are loaded correctly in Python 3. * If an object is missing from the index while packing a FileStorage, report its full oid. * Storage imports are a bit faster. * Storages can be important from non-seekable sources, like file-wrapped pipes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ZODB?expand=0&rev=11
18 lines
816 B
Diff
18 lines
816 B
Diff
--- ZODB-5.4.0/setup.py.orig 2018-03-26 07:29:02.000000000 -0600
|
|
+++ ZODB-5.4.0/setup.py 2018-03-26 20:19:35.621276487 -0600
|
|
@@ -85,10 +85,12 @@ def alltests():
|
|
mod = __import__(
|
|
_modname(dirpath, base, os.path.splitext(filename)[0]),
|
|
{}, {}, ['*'])
|
|
- _unittests_only(suite, mod.test_suite())
|
|
+ if (hasattr(mod, 'test_suite')):
|
|
+ _unittests_only(suite, mod.test_suite())
|
|
elif 'tests.py' in filenames:
|
|
mod = __import__(_modname(dirpath, base, 'tests'), {}, {}, ['*'])
|
|
- _unittests_only(suite, mod.test_suite())
|
|
+ if (hasattr(mod, 'test_suite')):
|
|
+ _unittests_only(suite, mod.test_suite())
|
|
return suite
|
|
|
|
def read(path):
|