On Monday, May 17, 2010 22:31:20 steve wrote:
> still doesn't work. this is so strange. is this dependent on "python
> setup.py test.ini"? I took that part out from the tests/__init__.py
> and created the db in the setup_db() instead of relying on calling
> websetup.py with SetupCommand. thanks.
we have this piece of code in our test base class:
# this sucks, but the python logging system
# will disable all already instantiated loggers
# before configuring the system. Which just happened
# through the above code. So to make things
# work, we need to re-enable all the disabled
# handlers here.
for logger in logging.getLogger().manager.loggerDict.values():
logger.disabled = False
It might be that for whatever reason, you configure twice as well. Try putting
the above into one of your tests & see if it subsequently spits out sql.
If yes, go figure out where the confiuration is done twice. Putting a few
breakpoints
import pdb; pdb.set_trace()
into the logging-module helps.
Diez
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.