Hello, On Sun, 31 May 2015 12:57:05 +0200 Thomas De Schampheleire <[email protected]> wrote:
> I've been using pytest for a while now, and think we should consider
> making it the default test suite instead of nose.
Meanwhile, neither nose nor pytest work for me at the moment, for
different reasons. Nose doesn't work properly as I'm running a bit
newer Pylons which broke nose as we use it, and pytest gives me this:
====================================================================== ERRORS
======================================================================
________________________________________________________________ ERROR
collecting _________________________________________________________________
/usr/lib/python2.7/dist-packages/py/_path/common.py:332: in visit
for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
/usr/lib/python2.7/dist-packages/py/_path/common.py:378: in gen
for p in self.gen(subdir):
/usr/lib/python2.7/dist-packages/py/_path/common.py:368: in gen
if p.check(dir=1) and (rec is None or rec(p))])
/usr/lib/python2.7/dist-packages/_pytest/main.py:632: in _recurse
ihook.pytest_collect_directory(path=path, parent=self)
/usr/lib/python2.7/dist-packages/_pytest/main.py:162: in __getattr__
plugins = self.config._getmatchingplugins(self.fspath)
/usr/lib/python2.7/dist-packages/_pytest/config.py:692: in _getmatchingplugins
self._conftest.getconftestmodules(fspath)
/usr/lib/python2.7/dist-packages/_pytest/config.py:521: in getconftestmodules
mod = self.importconftest(conftestpath)
/usr/lib/python2.7/dist-packages/_pytest/config.py:545: in importconftest
raise ConftestImportFailure(conftestpath, sys.exc_info())
E ConftestImportFailure:
(local('/home/andrew/projects/kallithea-test-fix/kallithea/tests/conftest.py'),
(<class 'py._path.local.ImportMismatchError'>,
ImportMismatchError('kallithea.tests.conftest',
'/home/andrew/projects/kallithea-test-fix/build/lib.linux-i686-2.7/kallithea/tests/conftest.py',
local('/home/andrew/projects/kallithea-test-fix/kallithea/tests/conftest.py')),
<traceback object at 0xb6e7a20c>))
============================================================= short test
summary info ==============================================================
ERROR
============================================================= 1 error in 30.37
seconds =============================================================
Any ideas how to deal with this?
--
Cheers,
Andrew
pgp1vRq7LJyuF.pgp
Description: OpenPGP digital signature
_______________________________________________ kallithea-general mailing list [email protected] http://lists.sfconservancy.org/mailman/listinfo/kallithea-general
