[TransWarp] PEAK: unittests do not run

Ulrich Eck ueck at net-labs.de
Thu Apr 17 06:57:58 EDT 2003


Hi Phillip,

i just updated peak (fresh checkout, removed all peak-packages
from site-packages) and the unittests do not run on my machine.
linux-2.4, python 2.2.2

i get the following error when running:
python setup.py test

Traceback (most recent call last):
  File "setup.py", line 109, in ?
    ["src/Persistence/cPersistence.c"]
  File "/usr/lib/python2.2/distutils/core.py", line 138, in setup
    dist.run_commands()
  File "/usr/lib/python2.2/distutils/dist.py", line 902, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.2/distutils/dist.py", line 922, in run_command
    cmd_obj.run()
  File "src/setup/common.py", line 113, in run
    main(None, None, sys.argv[:1]+self.test_args)
  File "/usr/lib/python2.2/unittest.py", line 674, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python2.2/unittest.py", line 701, in parseArgs
    self.createTests()
  File "/usr/lib/python2.2/unittest.py", line 707, in createTests
    self.module)
  File "/usr/lib/python2.2/unittest.py", line 473, in loadTestsFromNames
    suites.append(self.loadTestsFromName(name, module))
  File "/usr/lib/python2.2/unittest.py", line 448, in loadTestsFromName
    obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test'

while running:

python setup.py test -m peak.tests

runs the testsuite but has 12 errors in the metamodel/uml,xmi stuff.

cheers

Ulrich



---------------------------------------

Ulrich Eck
net-labs Systemhaus GmbH
Ebersberger Str. 46
85570 Markt Schwaben - Germany

eMail: ueck <at> net-labs.de
phone: +49 8121 4747 10
fax:   +49 8121 4747 77




More information about the PEAK mailing list