Mercurial > hg > audiodb
diff bindings/python/tests/InitialisationRelated.py @ 718:14568e432e73
segfaults are gone, but the new bits still aren't quite behaving correctly.
Also, some weird behavior when the query result is blank
| author | map01bf |
|---|---|
| date | Thu, 24 Jun 2010 16:38:32 +0000 |
| parents | 159becb0701e |
| children | 8e796b7b7a47 |
line wrap: on
line diff
--- a/bindings/python/tests/InitialisationRelated.py Wed Jun 23 17:52:30 2010 +0000 +++ b/bindings/python/tests/InitialisationRelated.py Thu Jun 24 16:38:32 2010 +0000 @@ -33,7 +33,7 @@ tH = open("testfeature", 'w') tH.write(struct.pack("=id",1,1)) tH.close() - self.adb.insert("testfeature") + self.adb.insert("testfeature", key='testfeature') self.adb.configQuery["seqLength"] = 1 result = self.adb.query("testfeature") self.assert_(len(result.rawData) == 1) @@ -42,7 +42,7 @@ self.assert_(result.rawData["testfeature"][0] == (float("-inf"), 0,0)) os.remove(self.adb.path)#delete the db def test_1DinsertionFromArraySelfQuery(self): - test1 = np.ones(6) + test1 = np.ones(1) print "test1: " + str(test1) self.adb.insert(featData=test1, key="testfeature") self.adb.configQuery["seqLength"] = 1
