Roundup Tracker - Issues

Issue 834218

classification
run_test doesn't ignore missing mysql and sqlite bindings
Type: Severity: normal
Components: Installation Versions:
process
Status: closed fixed
:
: richard : richard, rouilj
Priority: normal :

Created on 2003-11-01 17:59 by rouilj, last changed 2003-11-01 17:59 by rouilj.

Messages
msg1028 Author: [hidden] (rouilj) Date: 2003-11-01 17:59
Downloaded CVS release today, and ran:

  python run_tests.py 

I got the following output:

Running unit tests at level 1
Removing stale bytecode file ./test/test_db.pyc
Removing stale bytecode file ./test/test_init.pyc
Running unit tests from /h/develop/roundup/.
Including anydbm tests
Including bsddb tests
Skipping bsddb3 tests
Skipping metakit tests
Error importing test.test_mysql
cannot import name mysql
Traceback (most recent call last):
  File "run_tests.py", line 495, in get_suite
    mod = package_import(modname)
  File "run_tests.py", line 487, in package_import
    mod = __import__(modname)
  File "/h/develop/roundup/./test/test_mysql.py", line 45, in ?
    class mysqlClassicInitTest(ClassicInitTest):
  File "/h/develop/roundup/./test/test_mysql.py", line 89, in mysqlClassicInitTest
    from roundup.backends import mysql as module
ImportError: cannot import name mysql
Error importing test.test_sqlite
cannot import name sqlite
Traceback (most recent call last):
  File "run_tests.py", line 495, in get_suite
    mod = package_import(modname)
  File "run_tests.py", line 487, in package_import
    mod = __import__(modname)
  File "/h/develop/roundup/./test/test_sqlite.py", line 25, in ?
    class sqliteOpener:
  File "/h/develop/roundup/./test/test_sqlite.py", line 26, in sqliteOpener
    from roundup.backends import sqlite as module
ImportError: cannot import name sqlite

So some of the database tests are detected as being non-existant and are skipped, but the sqlite and mysql cause tracebacks.

-- rouilj

History
Date User Action Args
2003-11-01 17:59:00rouiljcreate