Mercurial > hg > carton
diff tests/doctest.txt @ 24:bb19d3dac4c5
fix tests
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 10 Jul 2011 18:17:54 -0700 |
parents | e2c9a9a4d524 |
children | e2db2913123d |
line wrap: on
line diff
--- a/tests/doctest.txt Fri Jul 08 18:25:31 2011 -0700 +++ b/tests/doctest.txt Sun Jul 10 18:17:54 2011 -0700 @@ -33,8 +33,9 @@ Find a console script. This shows installation went well:: - >>> bin = [os.path.join('foo', i) for i in ('bin', 'Scripts) if os.path.exists(os.path.join('foo', i))][0] - >>> os.path.exists(bin) # just to make sure + >>> bin = [os.path.join('foo', i) for i in ('bin', 'Scripts') if os.path.exists(os.path.join('foo', i))][0] + >>> os.path.isdir(bin) + True >>> os.path.exists(os.path.join(bin, 'packageA')) or os.path.exists(os.path.join(bin, 'packageA.exe')) True @@ -55,7 +56,7 @@ True >>> srcdir = os.path.join('fleem', 'src') >>> packageA = os.path.join(srcdir, [i for i in os.listdir(srcdir) if i.startswith('packageA')][0]) - >>> os.path.exists(os.path.join(packageA 'foo.txt')) + >>> os.path.exists(os.path.join(packageA, 'foo.txt')) False Clean up::