Adding python-pytest and python3-pytest to the build-depends does not
seem to be enough -- the tests then fail for other reasons as follows:
=================================== FAILURES ===================================
________________________ test_complete_on_empty_import _________________________
args = (), kwds = {}
oldcwd = '/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build'
repo_root = '/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build'
@functools.wraps(func)
def wrapper(*args, **kwds):
try:
oldcwd = os.getcwd()
repo_root = os.path.dirname(test_dir)
os.chdir(os.path.join(repo_root, path))
> return func(*args, **kwds)
test/helpers.py:36:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@cwd_at('jedi')
def test_complete_on_empty_import():
assert Script("from datetime import").completions()[0].name == 'import'
# should just list the files in the directory
> assert 10 < len(Script("from .", path='').completions()) < 30
E assert 10 < 0
E + where 0 = len([])
E + where [] = <bound method Script.completions of <Script: ''>>()
E + where <bound method Script.completions of <Script: ''>> = <Scrip
t: ''>.completions
E + where <Script: ''> = Script('from .', path='')
test/test_integration_import.py:21: AssertionError
======== 1 failed, 1213 passed, 17 skipped, 4 xfailed in 28.67 seconds =========
E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m pytest test
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 returned
exit code 13
debian/rules:4: recipe for target 'build' failed
make: *** [build] Error 25
dpkg-buildpackage: error: debian/rules build gave error exit status 2
--------------------------------------------------------------------------------
The tests fail for both python 2.7 and python 3.5.
cheers
Stuart
--
Stuart Prescott http://www.nanonanonano.net/ [email protected]
Debian Developer http://www.debian.org/ [email protected]
GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7