def _removeTestAtIndex(self, index):
test = self._tests[index]<EOL>if hasattr(test, '<STR_LIT>'):<EOL><INDENT>self._removed_tests += test.countTestCases()<EOL><DEDENT>self._tests[index] = None<EOL>
Python 3.x-like version of this function for Python 2.7's sake.