Instead of setting a parameter to check for the module's existence, you could probably do this instead:

import sys
if sys.modules.get('sqlalchemy', None):
    __all__.append( "PackageEngine" )

Then, you could get rid of the 'sqlalchemy = None' at the top of the file.

Note: I'm assuming that sqlalchemy comes up as 'sqlalchemy' in the module list.  You'd have to check to make sure.

Sean

On 2/26/06, Jeff Watkins <[EMAIL PROTECTED]> wrote:
The nosetests DID get run before committing. However, because I have sqlalchemy installed, the import didn't fail. I don't know of anyway to fool import into thinking a package isn't present...

On 26 Feb, 2006, at 5:02 am, Alberto wrote:

Yeah... It's fixed at r852. Maybe those nosetests should be run before

commiting...  ;)


--
Jeff Watkins

"Not everything that can be counted counts, and not everything that counts can be counted."
-- Albert Einstein






--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to