Index: drupal_web_test_case.php
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/drupal_web_test_case.php,v
retrieving revision 1.2.2.3
diff -u -p -r1.2.2.3 drupal_web_test_case.php
--- drupal_web_test_case.php	16 Jun 2008 21:09:13 -0000	1.2.2.3
+++ drupal_web_test_case.php	27 Jul 2008 14:35:29 -0000
@@ -387,6 +387,9 @@ class DrupalWebTestCase extends UnitTest
       $db_prefix = $this->db_prefix_original;
       $this->_logged_in = FALSE;
       $this->curlClose();
+      // Refresh the module list to clear the static variable.
+      module_list(TRUE, FALSE);
+
     }
     parent::tearDown();
   }
