On 20 août 16:24, Dan Stromberg wrote:
> Where is this "data" directory that pytest complains about in the "common"
> package? It seems to want a bunch of files in there that I didn't get from
> mercurial.
duh? You should have a common/test/data directory, I get it properly on clone.
> Do we require the mx.DateTime stuff that pytest is trying to find for
> common? mx.DateTime doesn't appear to have been ported to 3.x yet.
we can safely ignore this at first. We used to use mxDateTime before python
grows
its own datetime module. We now regularly cry that mxdt didn't go in the std
lib.
But that's another pb :)
> There are things other than the mx.DateTime stuff that is failing in the
> pytest tests. Is this a known issue? Do any of them need to be fixed
> before getting further into the 3.x port?
All tests are green on my computer (tm), using python 2.5 and 2.6. There may be
some tests depending on some logilab resources, but those one should be properly
skipped. Also, a missing data directory is probably explaining some failures...
BTW, I tried to modify the wiki page but keep getting an error. Here is
my 0.2 cents:
* There appear to be test suites for each of these, which can be invoked
using bare python or using the pytest command - pytest appears to be part of
logilab-common, which suggests a bit of
mutual dependency to work around. Note both logilab's pytest and
logilab.common.testlib should be replaced by forthcoming discover/unittest2, so
this is still ~2700 lines of code we won't have
to port.
> Is there a way of running pytest using modules that haven't been setup.py
> install'd? It'd be nice if my test iterations didn't have to install
> repeatedly. I was hoping that PYTHONPATH=$(pwd) would help, but it doesn't
> appear to due to the module hierarchy.
what's the pb? I have:
~/src/logilab/common/.hg
~/src/logilab/astng/.hg
~/src/logilab/__init__.py
~/src/pylint/.hg
PYTHONPATH=~/src
and everything is fine without installed package
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
CubicWeb, the semantic web framework: http://www.cubicweb.org
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects