equal
deleted
inserted
replaced
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) |