Changeset 302377b in osmose-backend


Ignore:
Timestamp:
Jun 1, 2014 11:17:14 PM (5 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
104b49d
Parents:
a5dbff7
Message:

Fix skipping of tests needing a postgresql database

File:
1 edited

Legend:

Unmodified
Added
Removed
  • analysers/Analyser_Osmosis.py

    ra2cdc7d r302377b  
    248248        conf.init() 
    249249        if not skip_db: 
    250             if not osmose_run.check_database(conf): 
    251                 from nose import SkipTest 
     250            from nose import SkipTest 
     251            try: 
     252                if not osmose_run.check_database(conf): 
     253                    raise SkipTest("database not present") 
     254            except: 
    252255                raise SkipTest("database not present") 
    253256            osmose_run.init_database(conf) 
Note: See TracChangeset for help on using the changeset viewer.