Index: includes/bootstrap.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v retrieving revision 1.371 diff -u -p -r1.371 bootstrap.inc --- includes/bootstrap.inc 11 Apr 2010 17:16:45 -0000 1.371 +++ includes/bootstrap.inc 11 Apr 2010 18:42:17 -0000 @@ -2385,6 +2385,7 @@ function drupal_autoload_class($class) { */ function _registry_check_code($type, $name = NULL) { static $lookup_cache, $cache_update_needed; + if ($type == 'class' && class_exists($name) || $type == 'interface' && interface_exists($name)) { return TRUE; } Index: modules/simpletest/simpletest.pages.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/simpletest/simpletest.pages.inc,v retrieving revision 1.26 diff -u -p -r1.26 simpletest.pages.inc --- modules/simpletest/simpletest.pages.inc 11 Apr 2010 17:16:45 -0000 1.26 +++ modules/simpletest/simpletest.pages.inc 11 Apr 2010 18:42:28 -0000 @@ -185,8 +185,8 @@ function simpletest_test_form_submit($fo // Get list of tests. $tests_list = array(); foreach ($form_state['values'] as $class_name => $value) { - // Since class_exists() will likely trigger an autoload lookup, - // we do the fast check first. + // Since class_exists() will likely trigger an autoload lookup, + // we do the fast check first. if ($value === 1 && class_exists($class_name)) { $tests_list[] = $class_name; }