[Zope3-dev] 14 tests failing
Stephan Richter
stephan.richter@tufts.edu
Fri, 20 Dec 2002 03:40:34 -0500
Guys,
I just have 14 tests failing and only one from changes in my new code (due to
a bug in ftplib). This is not good. Here the output:
======================================================================
ERROR: testFileGET (Zope.App.Publisher.Browser.tests.testFileResource.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/tests/testFileResource.py",
line 63, in testFileGET
resource = FileResourceFactory(path)(TestRequest())
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/FileResource.py",
line 121, in __init__
self.__file = File(path)
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/FileResource.py",
line 36, in __init__
file=open(path, 'rb')
IOError: [Errno 2] No such file or directory:
'/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/tests/test.txt'
======================================================================
ERROR: testFileHEAD (Zope.App.Publisher.Browser.tests.testFileResource.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/tests/testFileResource.py",
line 73, in testFileHEAD
resource = FileResourceFactory(path)(TestRequest())
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/FileResource.py",
line 121, in __init__
self.__file = File(path)
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/FileResource.py",
line 36, in __init__
file=open(path, 'rb')
IOError: [Errno 2] No such file or directory:
'/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/tests/test.txt'
======================================================================
ERROR: testNoTraversal
(Zope.App.Publisher.Browser.tests.testFileResource.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/tests/testFileResource.py",
line 52, in testNoTraversal
resource = FileResourceFactory(path)(TestRequest())
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/FileResource.py",
line 121, in __init__
self.__file = File(path)
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/FileResource.py",
line 36, in __init__
file=open(path, 'rb')
IOError: [Errno 2] No such file or directory:
'/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/tests/test.txt'
======================================================================
ERROR: testFileGET
(Zope.App.Publisher.Browser.tests.testI18nFileResource.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/tests/testI18nFileResource.py",
line 93, in testFileGET
resource = I18nFileResourceFactory(self._createDict('test.txt'), 'en')\
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/tests/testI18nFileResource.py",
line 74, in _createDict
return { 'en': File(path1),
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/FileResource.py",
line 36, in __init__
file=open(path, 'rb')
IOError: [Errno 2] No such file or directory:
'/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/tests/test.txt'
======================================================================
ERROR: testFileHEAD
(Zope.App.Publisher.Browser.tests.testI18nFileResource.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/tests/testI18nFileResource.py",
line 127, in testFileHEAD
resource = I18nFileResourceFactory(self._createDict('test.txt'), 'en')\
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/tests/testI18nFileResource.py",
line 74, in _createDict
return { 'en': File(path1),
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/FileResource.py",
line 36, in __init__
file=open(path, 'rb')
IOError: [Errno 2] No such file or directory:
'/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/Publisher/Browser/tests/test.txt'
======================================================================
ERROR: test__connection_factory_bad_dsn
(Zope.App.RDB.GadflyDA.tests.testAdapter.TestGadflyAdapter)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/tests/testAdapter.py",
line 78, in test__connection_factory_bad_dsn
a = self._create("dbi://user:pass/demo;dir=nonexistent")
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/tests/testAdapter.py",
line 63, in _create
from Zope.App.RDB.GadflyDA.Adapter import GadflyAdapter
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Persistence/tests/testModule.py",
line 83, in __import__
return self._saved_import(name, globals, locals, fromlist)
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Persistence/tests/testModule.py",
line 83, in __import__
return self._saved_import(name, globals, locals, fromlist)
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/Adapter.py",
line 20, in ?
import gadfly
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Persistence/tests/testModule.py",
line 83, in __import__
return self._saved_import(name, globals, locals, fromlist)
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Persistence/tests/testModule.py",
line 83, in __import__
return self._saved_import(name, globals, locals, fromlist)
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/gadfly/__init__.py",
line 11, in ?
from gadfly import *
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Persistence/tests/testModule.py",
line 83, in __import__
return self._saved_import(name, globals, locals, fromlist)
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Persistence/tests/testModule.py",
line 83, in __import__
return self._saved_import(name, globals, locals, fromlist)
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/gadfly/gadfly.py",
line 5, in ?
sql = sqlgen.getSQL()
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/gadfly/sqlgen.py",
line 77, in getSQL
return reloadSQLG(filename)
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/gadfly/sqlgen.py",
line 69, in reloadSQLG
infile = open(filename, "rb")
IOError: [Errno 2] No such file or directory:
'/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/gadfly/sql.mar'
======================================================================
ERROR: test__connection_factory_nonexistent
(Zope.App.RDB.GadflyDA.tests.testAdapter.TestGadflyAdapter)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/tests/testAdapter.py",
line 74, in test__connection_factory_nonexistent
a = self._create("dbi://demo;dir=nonexistent")
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/tests/testAdapter.py",
line 63, in _create
from Zope.App.RDB.GadflyDA.Adapter import GadflyAdapter
ImportError: cannot import name GadflyAdapter
======================================================================
ERROR: test__connection_factory_create
(Zope.App.RDB.GadflyDA.tests.testAdapter.TestGadflyAdapterNew)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/tests/testAdapter.py",
line 90, in test__connection_factory_create
a = self._create("dbi://demo;dir=test")
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/tests/testAdapter.py",
line 63, in _create
from Zope.App.RDB.GadflyDA.Adapter import GadflyAdapter
ImportError: cannot import name GadflyAdapter
======================================================================
ERROR: test__connection_factory_existing
(Zope.App.RDB.GadflyDA.tests.testAdapter.TestGadflyAdapterNew)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/tests/testAdapter.py",
line 97, in test__connection_factory_existing
a = self._create("dbi://demo;dir=regular")
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/tests/testAdapter.py",
line 63, in _create
from Zope.App.RDB.GadflyDA.Adapter import GadflyAdapter
ImportError: cannot import name GadflyAdapter
======================================================================
ERROR: test__connection_factory_create
(Zope.App.RDB.GadflyDA.tests.testAdapter.TestGadflyAdapterDefault)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/tests/testAdapter.py",
line 122, in test__connection_factory_create
a = self._create("dbi://demo")
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/tests/testAdapter.py",
line 63, in _create
from Zope.App.RDB.GadflyDA.Adapter import GadflyAdapter
ImportError: cannot import name GadflyAdapter
======================================================================
ERROR: test__connection_factory_reopen
(Zope.App.RDB.GadflyDA.tests.testAdapter.TestGadflyAdapterDefault)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/tests/testAdapter.py",
line 128, in test__connection_factory_reopen
a = self._create("dbi://demo")
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/RDB/GadflyDA/tests/testAdapter.py",
line 63, in _create
from Zope.App.RDB.GadflyDA.Adapter import GadflyAdapter
ImportError: cannot import name GadflyAdapter
======================================================================
ERROR: test_generateModuleSource
(Zope.App.schemagen.tests.test_schemaspec.SchemaSpecTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/schemagen/tests/test_schemaspec.py",
line 206, in test_generateModuleSource
f = openInTests('setstatemodule_no_history.py.txt', 'r')
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/schemagen/tests/test_schemaspec.py",
line 24, in openInTests
return open(os.path.join(os.path.dirname(__file__), name), mode)
IOError: [Errno 2] No such file or directory:
'/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/schemagen/tests/setstatemodule_no_history.py.txt'
======================================================================
ERROR: test_history (Zope.App.schemagen.tests.test_schemaspec.SchemaSpecTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/schemagen/tests/test_schemaspec.py",
line 189, in test_history
f = openInTests('setstate.py.txt', 'r')
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/schemagen/tests/test_schemaspec.py",
line 24, in openInTests
return open(os.path.join(os.path.dirname(__file__), name), mode)
IOError: [Errno 2] No such file or directory:
'/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/App/schemagen/tests/setstate.py.txt'
======================================================================
ERROR: testLIST (Zope.Server.FTP.tests.testFTPServer.Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/Server/FTP/tests/testFTPServer.py",
line 193, in testLIST
listing = retrlines(conn, 'LIST')
File
"/home/srichter/Zope3/Zope3-Fresh/build/lib.linux-i686-2.3/Zope/Server/FTP/tests/testFTPServer.py",
line 54, in retrlines
ftpconn.retrlines(cmd, res.append)
File "/opt/python2.3/lib/python2.3/ftplib.py", line 396, in retrlines
conn = self.transfercmd(cmd)
File "/opt/python2.3/lib/python2.3/ftplib.py", line 345, in transfercmd
return self.ntransfercmd(cmd, rest)[0]
File "/opt/python2.3/lib/python2.3/ftplib.py", line 327, in ntransfercmd
resp = self.sendcmd(cmd)
File "/opt/python2.3/lib/python2.3/ftplib.py", line 241, in sendcmd
return self.getresp()
File "/opt/python2.3/lib/python2.3/ftplib.py", line 214, in getresp
raise error_perm, resp
error_perm: 500 Internal error: NameError: global name 'p' is not defined
----------------------------------------------------------------------
Ran 2814 tests in 315.065s
FAILED (errors=14)
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training