15
0
forked from pool/python-ZODB
Files
python-ZODB/python-ZODB-testsuite.patch

18 lines
816 B
Diff
Raw Normal View History

--- 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):