[py-svn] r37303 - py/trunk/py/apigen/testing
guido at codespeak.net
guido at codespeak.net
Wed Jan 24 22:16:33 CET 2007
Author: guido
Date: Wed Jan 24 22:16:32 2007
New Revision: 37303
Modified:
py/trunk/py/apigen/testing/test_apigen_functional.py
Log:
Made functional test use an absolute path to py.test.
Modified: py/trunk/py/apigen/testing/test_apigen_functional.py
==============================================================================
--- py/trunk/py/apigen/testing/test_apigen_functional.py (original)
+++ py/trunk/py/apigen/testing/test_apigen_functional.py Wed Jan 24 22:16:32 2007
@@ -73,12 +73,13 @@
def test_apigen_functional():
fs_root, package_name = setup_fs_project()
tempdir = py.test.ensuretemp('test_apigen_functional_results')
- parentdir = py.magic.autopath().dirpath().dirpath()
+ pydir = py.magic.autopath().dirpath().dirpath().dirpath()
pkgdir = fs_root.join('pkg')
try:
- output = py.process.cmdexec('APIGEN_TARGET="%s" py.test '
+ output = py.process.cmdexec('APIGEN_TARGET="%s" %s/bin/py.test '
'--apigen="%s/apigen.py" "%s"' % (
- tempdir, parentdir, pkgdir))
+ tempdir, pydir, pydir.join('apigen'),
+ pkgdir))
except py.error.Error, e:
print e.out
raise
More information about the pytest-commit
mailing list