[py-dev] Re: [py-svn] r13350 - py/dist/py/compat
Grig Gheorghiu
grig at gheorghiu.net
Mon Jun 13 16:43:29 CEST 2005
--- hpk at codespeak.net wrote:
> Author: hpk
> Date: Mon Jun 13 16:37:43 2005
> New Revision: 13350
>
> Added:
> py/dist/py/compat/__init__.py
> Log:
> add missing __init__.py file
>
>
> Added: py/dist/py/compat/__init__.py
>
==============================================================================
> --- (empty file)
> +++ py/dist/py/compat/__init__.py Mon Jun 13 16:37:43 2005
> @@ -0,0 +1 @@
> +#
OK, this got rid of 3 out of the 4 failed tests. Now only
documentation\test_conftest.py fails with:
_______________________________________________________________________________
def test_doctest_basic():
# XXX get rid of the next line:
py.magic.autopath().dirpath('conftest.py').copy(tmpdir.join('conftest.py
'))
tmpdir.ensure('__init__.py')
xtxt = tmpdir.join('x.txt')
xtxt.write(py.code.Source("""
..
>>> from os.path import abspath
hello world
>>> assert abspath
>>> i=3
>>> print i
3
yes yes
>>> i
3
end
"""))
config, args = py.test.Config.parse([str(xtxt)])
session = config.getsessionclass()(config, py.std.sys.stdout)
session.main([xtxt])
l = session.getitemoutcomepairs(py.test.Item.Failed)
assert len(l) == 0
l = session.getitemoutcomepairs(py.test.Item.Passed)
E assert len(l) == 2
> assert 1 == 2
+ where 1 = len([(<DoctestText 'doctest'>, <Passed
instance>)])
[C:\py\py\documentation\test_conftest.py:37]
More information about the py-dev
mailing list