[Zope3-dev] Zope3 Tests not OK :-(

Godefroid Chapelle gotcha@swing.be
Fri, 29 Nov 2002 10:00:55 +0100


At 07:11 29/11/2002, Tim Peters wrote:
>Here's a wholly concrete example:
>
>C:\Code\Zope3>set STUPID_LOG_FILE=/code/stupid.txt
>C:\Code\Zope3>set STUPID_LOG_SEVERITY=-300
>C:\Code\Zope3>\python22\python test.py -vv . checkDisconnectionError
>checkDisconnectionError (ZEO.tests.testConnection.WindowsConnectionTests)
>... ok


Did that and got the traceback hereunder.
I am surprised by the import problem but do not have time to dig in just 
now, so I thought I would post it though.


C:\tmp\Zope3TestsSandbox\Zope3>set STUPID_LOG_FILE=/st_log/stupid.txt

C:\tmp\Zope3TestsSandbox\Zope3>set STUPID_LOG_SEVERITY=-300

C:\tmp\Zope3TestsSandbox\Zope3>python test.py -vv . checkDisconnectionError
Error importing Persistence.BTrees.tests.testBTrees
cannot import name get_transaction
   File 
"c:\tmp\Zope3TestsSandbox\Zope3\lib\python\Persistence\BTrees\tests\testB
Trees.py", line 19, in ?
     from Transaction import get_transaction

Error importing Persistence.BTrees.tests.testCompare
cannot import name get_transaction
   File "c:\tmp\Zope3TestsSandbox\Zope3\lib\python\ZODB\ExportImport.py", 
line 19
, in ?
     from Transaction import get_transaction

Error importing Persistence.tests.testModule
cannot import name get_transaction
   File "c:\tmp\Zope3TestsSandbox\Zope3\lib\python\Persistence\Module.py", 
line 3
2, in ?
     from Transaction import get_transaction

Traceback (most recent call last):
   File "test.py", line 449, in ?
     process_args()
   File "test.py", line 413, in process_args
     bad = main(module_filter, test_filter)
   File "test.py", line 316, in main
     runner(files, test_filter, debug)
   File "test.py", line 280, in runner
     s = get_suite(file)
   File "test.py", line 235, in get_suite
     mod = package_import(modname)
   File "test.py", line 216, in package_import
     mod = __import__(modname)
   File 
"c:\tmp\Zope3TestsSandbox\Zope3\lib\python\ZEO\tests\testClientCache.py",
  line 26, in ?
     from ZEO.ClientCache import ClientCache
   File "c:\tmp\Zope3TestsSandbox\Zope3\lib\python\ZEO\ClientCache.py", 
line 116,
  in ?
     class ClientCache:
   File "c:\tmp\Zope3TestsSandbox\Zope3\lib\python\ZEO\ClientCache.py", 
line 676,
  in ClientCache
     def log(self, msg, level=zLOG.INFO):
AttributeError: 'module' object has no attribute 'INFO'

--

Godefroid Chapelle

BubbleNet sprl
rue Victor Horta, 18 / 202
1348 Louvain-la-Neuve
Belgium

Tel + 32 (10) 459901
Mob + 32 (477) 363942

TVA 467 093 008
RC Niv 49849