[Scons-dev] Run a single test

anatoly techtonik techtonik at gmail.com
Thu Dec 20 12:50:47 EST 2012


On Thu, Dec 20, 2012 at 6:13 PM, Dirk Bächle <tshortik at gmx.de> wrote:


> Hi Anatoly,

>

> specifying the full relative path, like in

>

> python runtest.py test/Delete.py

>

> , should work.

>


This works ok after I fix my PYTHONPATH, but I need to iterate only on a
single test_* method.
I've tried nose, but it fails to run, probably due to our hackery in
_resetSConfState function.


> py -m nose.core SCons.SConfTests

EEEEEEEEEEEEEEEEEEEEE
======================================================================
ERROR: Test SConf.CheckType()
----------------------------------------------------------------------
Traceback (most recent call last):
File "...\scons\src\engine\SCons\SConfTests.py", line 708, in test_
self._resetSConfState()
File "...\scons\src\engine\SCons\SConfTests.py", line 65, in
_resetSConfState
m = sys.modules[n]
NameError: global name 'sys' is not defined

======================================================================
ERROR: Test SConf.CheckType()
----------------------------------------------------------------------
Traceback (most recent call last):
File "...\scons\src\engine\SCons\SConfTests.py", line 54, in tearDown
import SCons.SConsign
ImportError: __import__ not found

--
anatoly t.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/scons-dev/attachments/20121220/9f62474b/attachment.html>


More information about the Scons-dev mailing list