summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-10-28 21:15:30 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-10-28 21:15:30 (GMT)
commit837ce9389e246c84a8791cf0ed64b277efce1f6b (patch)
tree76ceae567a01cba4ff44e2dc80328c55d8ea49ae /Modules
parentb21e0815bf5a6d6a3e795354e3c9a9afde8f24f7 (diff)
downloadcpython-837ce9389e246c84a8791cf0ed64b277efce1f6b.zip
cpython-837ce9389e246c84a8791cf0ed64b277efce1f6b.tar.gz
cpython-837ce9389e246c84a8791cf0ed64b277efce1f6b.tar.bz2
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.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/threadmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index 448b11c..036619a 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -25,6 +25,7 @@ typedef struct {
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);