pytestconf.py
changeset 4796 a20edc0f8b30
parent 4777 7e37cb866e97
child 4804 daa71eaf11e8
--- a/pytestconf.py	Thu Mar 04 12:07:54 2010 +0100
+++ b/pytestconf.py	Thu Mar 04 12:08:09 2010 +0100
@@ -21,7 +21,7 @@
 
 def clean_repo_test_cls(cls):
     if 'repo' in cls.__dict__:
-        if cls.repo._shutting_down:
+        if not cls.repo._shutting_down:
             cls.repo.shutdown()
         del cls.repo
     for clsattr in ('cnx', '_orig_cnx', 'config', '_config', 'vreg', 'schema'):