Re: [Modeling-users] Run some test
Status: Abandoned
Brought to you by:
sbigaret
|
From: Sebastien B. <sbi...@us...> - 2004-03-17 07:20:58
|
"Ernesto Revilla" <er...@si...> wrote:
> Hi,
>=20
> when I run:
> python test_EditingContext_optimistic_locking.py -d SQLite
> with Python 2.2 and ZODB installed,
>=20
> I get:
> Traceback (most recent call last):
> File "test_EditingContext_optimistic_locking.py", line 410, in ?
> errs =3D main(sys.argv)
> File "test_EditingContext_optimistic_locking.py", line 392, in main
> utils.enable_model_cache_and_compute()
[...]
> TypeError: instancemethod() argument 3 must be class, not ExtensionClass
>=20
> Trying to display a message whenever a method cannot be cached, it seems
> that ever attribute of a class is an extension class. No idea how I can t=
urn
> off ExtensionClasses.
Entity, Attribute, etc. inherit from ZODB.Persistent, when available,
for models to be persistent in the ZModeler --this is the source of the
pb. Until a better solution is found, I've attached a patch for
disabling this (see below short patch for MDL/utils.py).
> On the other hand, may be some test assertios should be updated:
> with 'python run.py' I get (see ???):
[...]
Got them on my side too, I do not know why I didn't get them at release
time. i'll look closer at that probably tonight (same for the loop
happening when spark is not there which you reported in your next post).
Thanks for reporting!
-- S=E9bastien.
Index: utils.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/utils.py,v
retrieving revision 1.20
diff -u -r1.20 utils.py
--- utils.py 22 Feb 2004 17:31:38 -0000 1.20
+++ utils.py 17 Mar 2004 07:06:38 -0000
@@ -57,12 +57,7 @@
class base_object : pass
newclass =3D 0
=20
-try:
- import ZODB
- from Persistence import Persistent
- base_persistent_object=3DPersistent
-except:
- base_persistent_object=3Dbase_object
+base_persistent_object=3Dbase_object
=20
_validFirstLetter =3D "_"+string.letters
=20
|