Correct variable references.

This commit is contained in:
Anthony Tuininga 2016-02-05 19:37:51 -07:00
parent 22cd6eafd8
commit 3f701549c7
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ static PyMemberDef g_ErrorMembers[] = {
{ "offset", T_INT, offsetof(udt_Error, offset), READONLY },
{ "message", T_OBJECT, offsetof(udt_Error, message), READONLY },
{ "context", T_STRING, offsetof(udt_Error, context), READONLY },
{ "isrecoverable", T_BOOL, offsetof(udt_Error, context), READONLY },
{ "isrecoverable", T_BOOL, offsetof(udt_Error, isRecoverable), READONLY },
{ NULL }
};

View File

@ -3,7 +3,7 @@
import cx_Oracle
import pickle
class TestBooleanVar(BaseTestCase):
class TestError(BaseTestCase):
def testPickleError(self):
"test picking/unpickling an error object"