[test] check _shutting_down, not empty dict (empty dict test should go in pytestgc patch)
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 03 Mar 2010 19:20:03 +0100
changeset 4777 7e37cb866e97
parent 4776 3bf51379baee
child 4787 dc07678c4935
[test] check _shutting_down, not empty dict (empty dict test should go in pytestgc patch)
pytestconf.py
--- a/pytestconf.py	Wed Mar 03 19:03:52 2010 +0100
+++ b/pytestconf.py	Wed Mar 03 19:20:03 2010 +0100
@@ -21,7 +21,7 @@
 
 def clean_repo_test_cls(cls):
     if 'repo' in cls.__dict__:
-        if cls.repo.__dict__: # empty dict when already shutted down
+        if cls.repo._shutting_down:
             cls.repo.shutdown()
         del cls.repo
     for clsattr in ('cnx', '_orig_cnx', 'config', '_config', 'vreg', 'schema'):