bpo-30447: Fix/skip the subinterpreters test on some platforms. (#1791)

This commit is contained in:
Eric Snow 2017-05-24 17:19:47 -07:00 committed by GitHub
parent 94987826e8
commit d1c3c13fed
2 changed files with 43 additions and 44 deletions

View file

@ -28,7 +28,7 @@ static void print_subinterp(void)
PyThreadState *ts = PyThreadState_Get();
PyInterpreterState *interp = ts->interp;
int64_t id = PyInterpreterState_GetID(interp);
printf("interp %lu <0x%" PRIXPTR ">, thread state <0x%" PRIXPTR ">: ",
printf("interp %" PRId64 " <0x%" PRIXPTR ">, thread state <0x%" PRIXPTR ">: ",
id, (uintptr_t)interp, (uintptr_t)ts);
fflush(stdout);
PyRun_SimpleString(