Update of /cvsroot/sqlobject/SQLObject/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv1901/tests
Modified Files:
test.py
Log Message:
Added registries for classes, so that class names only have to be
unique within their registry.
Index: test.py
===================================================================
RCS file: /cvsroot/sqlobject/SQLObject/tests/test.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** test.py 12 May 2003 01:58:21 -0000 1.14
--- test.py 24 May 2003 20:48:51 -0000 1.15
***************
*** 261,267 ****
return
import sys
- reg = sys.modules[SQLObject.__module__].classRegistry
- if reg.has_key('AutoTest'):
- del reg['AutoTest']
class AutoTest(SQLObject):
_fromDatabase = True
--- 261,264 ----
***************
*** 275,278 ****
--- 272,277 ----
happy='N',
created=DateTime.now())
+ reg = sys.modules[SQLObject.__module__].classRegistry[AutoTest._registry]
+ del reg['AutoTest']
########################################
|