コード例 #1
0
ファイル: conftest.py プロジェクト: jbaksta/spack
def mutable_database(database):
    """For tests that need to modify the database instance."""
    yield database
    with database.write_transaction():
        for spec in spack.store.db.query():
            PackageBase.uninstall_by_spec(spec, force=True)
    _populate(database)
コード例 #2
0
ファイル: conftest.py プロジェクト: matzke1/spack
def mutable_database(database):
    """For tests that need to modify the database instance."""
    yield database
    with database.write_transaction():
        for spec in spack.store.db.query():
            PackageBase.uninstall_by_spec(spec, force=True)
    _populate(database)
コード例 #3
0
 def fail_while_writing():
     with database.write_transaction():
         _mock_install('cmake')
         raise Exception()
コード例 #4
0
 def fail_while_writing():
     with database.write_transaction():
         _mock_remove('mpileaks ^zmpi')
         raise Exception()