Staging
v0.5.1
https://github.com/python/cpython
Revision 2aece57d7f7c4233c801d10f500a3f8a2ef483f7 authored by Amaury Forgeot d'Arc on 29 March 2008, 01:42:31 UTC, committed by Amaury Forgeot d'Arc on 29 March 2008, 01:42:31 UTC
otherwise running test_logging twice produce the errors we see on all buildbots
1 parent 504a48f
Raw File
Tip revision: 2aece57d7f7c4233c801d10f500a3f8a2ef483f7 authored by Amaury Forgeot d'Arc on 29 March 2008, 01:42:31 UTC
Correctly call the base class tearDown();
Tip revision: 2aece57
strdup.c
/* strdup() replacement (from stdwin, if you must know) */

#include "pgenheaders.h"

char *
strdup(const char *str)
{
	if (str != NULL) {
		register char *copy = malloc(strlen(str) + 1);
		if (copy != NULL)
			return strcpy(copy, str);
	}
	return NULL;
}
back to top