#33 run_tests failure with Python 2.4 on Windows 2000

closed-fixed
Stuart Bishop
None
5
2005-05-18
2005-03-26
Anonymous
No

Windows 2000
Python 2.4
gadfly 1.0

Unzip gadflyZip to new directory.
From that directory:

python run_tests
Traceback (most recent call last):
File "run_tests", line 9 in ?
go()
File C:\Python\gadfly\gadflyZip\test\__init__.py", line
35, in go
l.append(test_mods[name].suite())
AttributeError: 'module' object has no attribute 'suite'

Discussion

  • Logged In: NO

    Same failure on with Python 2.4.1 on Redhat-something

     
  • Logged In: NO

    Same results with Python 2.3.5

     
  • Logged In: NO

    Same results with Python 2.3.5

     
  • Logged In: NO

    Same results with Python 2.3.5

     
  • Curtis Mok
    Curtis Mok
    2005-05-05

    Logged In: YES
    user_id=1272727

    Same results with 2.4.1 (final) and 2.3.5 (final) run on
    WinXP Professional or Home edition, I tired to ignore the
    error and install it.

    if I use gadfly.gadfly(), it said this 'module' object have
    no such attribute.

    I am stucking in here, can anybody give me a hand?

    Cheers.

     
  • Logged In: YES
    user_id=118443

    As far as I can see, all the modules 'test_xxx.py' have a
    function 'suite', with test_gadfly_dbapi20.py as the only
    exception. It seems to be this exception which keeps "python
    run_tests" without a module name from working.

    You can do "python run_tests gadfly" etc., naming all the
    other modules without their file extension and without their
    prefix 'test_'.

    But I can't reproduce your error message when you try to use
    the class. What about the import statement, does that give
    an error?

     
  • Stuart Bishop
    Stuart Bishop
    2005-05-18

    • assigned_to: nobody --> zenzen
    • status: open --> closed-fixed