Skip to content

Commit

Permalink
indigo-tests: coverage tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Kvyatkovskiy committed Jun 6, 2013
1 parent bb60f31 commit 347f1ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/python/indigo.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ def addAtom(self, symbol):

def resetAtom(self, symbol):
self.dispatcher._setSessionId()
return self.dispatcher.IndigoObject(self.dispatcher, self.dispatcher._checkResult(Indigo._lib.indigoResetAtom(self.id, symbol)))
self.dispatcher._checkResult(Indigo._lib.indigoResetAtom(self.id, symbol))

def addRSite(self, name):
self.dispatcher._setSessionId()
Expand Down Expand Up @@ -1696,20 +1696,20 @@ def __del__ (self):
def writeBuffer (self):
self._setSessionId()
id = self._checkResult(Indigo._lib.indigoWriteBuffer())
return IndigoObject(self, id)
return self.IndigoObject(self, id)

def writeFile (self, filename):
self._setSessionId()
id = self._checkResult(Indigo._lib.indigoWriteFile(filename))
return IndigoObject(self, id)
return self.IndigoObject(self, id)

def unserialize(self, arr):
self._setSessionId()
values = (c_byte * len(arr))()
for i in xrange(len(arr)):
values[i] = arr[i]
res = Indigo._lib.indigoUnserialize(values, len(arr))
return IndigoObject(self, self._checkResult(res))
return self.IndigoObject(self, self._checkResult(res))

def setOption (self, option, value1, value2=None, value3=None):
self._setSessionId()
Expand Down

0 comments on commit 347f1ca

Please sign in to comment.