[Zope3-Users] Problem running test.py

Kent Tenney ktenney at gmail.com
Sat Nov 13 07:01:55 EST 2004


Howdy,

I'm commencing a product which is in $INSTANCE\lib\python\mim.

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!

What am I missing?

Thanks,
Kent


More information about the Zope3-users mailing list