diff Modules/threadmodule.c @ 40230:a1863833c4e6 2.5

Backport 52501: Add some asserts. In sysmodule, I think these were to try to silence some warnings from Klokwork. They verify the assumptions of the format of svn version output. The assert in the thread module helped debug a problem on HP-UX.
author Neal Norwitz <nnorwitz@gmail.com>
date Sat, 28 Oct 2006 21:36:37 +0000
parents a714f2f13e25
children e8bee3097d44 6620a510e9a9
line wrap: on
line diff
--- a/Modules/threadmodule.c	Sat Oct 28 16:04:07 2006 +0000
+++ b/Modules/threadmodule.c	Sat Oct 28 21:36:37 2006 +0000
@@ -25,6 +25,7 @@
 static void
 lock_dealloc(lockobject *self)
 {
+	assert(self->lock_lock);
 	/* Unlock the lock so it's safe to free it */
 	PyThread_acquire_lock(self->lock_lock, 0);
 	PyThread_release_lock(self->lock_lock);