Bug#812648: astroquery: FTBFS - AttributeError: 'Config' object has no attribute '_conftest'

2016-02-13 Thread Vincent Prat

Hi,

I managed to reproduce the bug.

According to my investigations, it is caused by a change in pytest 
(fails with version 2.8).
The current version of astropy available in Debian does not take this 
change into account (see upstream discussion at 
https://github.com/astropy/astropy/issues/4256) and thus make astroquery 
tests fail.


I managed to get rid of the bug by modifying the offending line (164) in 
/usr/lib/usr/lib/python2.7/dist-packages/astropy/tests/pytest_plugins.py:


-module = self.config._conftest.importconftest(self.fspath)
+module = self.config.pluginmanager._importconftest(self.fspath)

as it is in the file doctest.py of python-pytest (line 172).

Best regards,
Vincent



Bug#812648: astroquery: FTBFS - AttributeError: 'Config' object has no attribute '_conftest'

2016-01-25 Thread Michael Tautschnig
Package: astroquery
Version: 0.2.4+dfsg-1
Severity: serious
Usertags: goto-cc

During a rebuild of all Debian packages in a clean sid chroot (using cowbuilder
and pbuilder) the build failed with the following error.

[...]

 ERRORS 
___ ERROR collecting astroquery/conftest.py 
/usr/lib/python2.7/dist-packages/astropy/tests/pytest_plugins.py:164: in collect
module = self.config._conftest.importconftest(self.fspath)
E   AttributeError: 'Config' object has no attribute '_conftest'
= 329 passed, 188 skipped, 2 xfailed, 1 error in 49.24 seconds =
E: pybuild pybuild:274: test: plugin distutils failed with: exit code=1: cd 
/srv/jenkins-slave/workspace/sid-goto-cc-astroquery/astroquery-0.2.4+dfsg/.pybuild/pythonX.Y_2.7/build;
 python2.7 -m pytest ../../../astroquery
dh_auto_test: pybuild --test -i python{version} -p 2.7 --dir . returned exit 
code 13
debian/rules:10: recipe for target 'build' failed
make: *** [build] Error 25


The full build log is attached; please do let me know if the problem is
unreproducible, in which case I shall try to investigate further.

Best,
Michael


astroquery-build-log.txt.gz
Description: application/gunzip


signature.asc
Description: PGP signature