pytestconf.py
branchstable
changeset 5906 d40ced753291
parent 5426 0d4853a6e5ee
child 9471 367fe83d9f98
equal deleted inserted replaced
5903:aa01eb033620 5906:d40ced753291
    38                     continue
    38                     continue
    39                 clean_repo_test_cls(cls)
    39                 clean_repo_test_cls(cls)
    40 
    40 
    41 def clean_repo_test_cls(cls):
    41 def clean_repo_test_cls(cls):
    42     if 'repo' in cls.__dict__:
    42     if 'repo' in cls.__dict__:
    43         if not cls.repo._shutting_down:
    43         if not cls.repo.shutting_down:
    44             cls.repo.shutdown()
    44             cls.repo.shutdown()
    45         del cls.repo
    45         del cls.repo
    46     for clsattr in ('cnx', '_orig_cnx', 'config', '_config', 'vreg', 'schema'):
    46     for clsattr in ('cnx', '_orig_cnx', 'config', '_config', 'vreg', 'schema'):
    47         if clsattr in cls.__dict__:
    47         if clsattr in cls.__dict__:
    48             delattr(cls, clsattr)
    48             delattr(cls, clsattr)