[Zope3-Users] Problem running test.py

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Nov 15 16:19:12 EST 2004


On Saturday 13 November 2004 07:01, Kent Tenney wrote:
> I'm commencing a product which is in $INSTANCE\lib\python\mim.

In Zope 3, we call "products" simply "packages".

> I have a mim.txt file in that directory with documentation and doctests.
>
> Also in that directory is tests.py with::
>
>  def test_suite():
>      return DocFileSuite('mim .txt')
>
> I then run::
>
>  from subprocess import Popen as Popen
>  import os
>
>  os.chdir(r'c:\python23\lib\site-packages\zope\app\tests')
>  Popen(['python', 'test.py', '-s mim', r'-l
> c:\cygwin\home\ktenney\Zope3\lib\python'])
>
> and get the result;
>
> Running UNIT tests from c:\python23\lib\site-packages\zope\app\tests\
> c:\cygwin\ home\ktenney\Zope3\lib\python\
> Traceback (most recent call last):
>   File "test.py", line 1208, in ?
>     process_args()
>   File "test.py", line 1189, in process_args
>     bad = main(MODULE_FILTERS, TEST_FILTERS, LIBDIR)
>   File "test.py", line 824, in main
>     files = find_tests(module_filter)
>   File "test.py", line 593, in find_tests
>     d = find_test_dir(d)
>   File "test.py", line 585, in find_test_dir
>     raise ValueError("%s does not exist!" % dir)
> ValueError:  mim does not exist!

It does not find the "mim" directory you specified. Are you sure this 
directory is local to your Python execution path?

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list