File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public void PassObjectInPython()
103
103
Assert . AreEqual ( sys . testattr3 . ToString ( ) , "True" ) ;
104
104
105
105
// Compare in .NET
106
- Assert . AreEqual ( sys . testattr1 , sys . testattr2 ) ;
106
+ Assert . IsTrue ( sys . testattr1 . Equals ( sys . testattr2 ) ) ;
107
107
}
108
108
109
109
/// <summary>
@@ -125,7 +125,7 @@ public void PassPyObjectInNet()
125
125
Assert . AreEqual ( sys . testattr3 . ToString ( ) , "True" ) ;
126
126
127
127
// Compare in .NET
128
- Assert . AreEqual ( sys . testattr1 , sys . testattr2 ) ;
128
+ Assert . IsTrue ( sys . testattr1 . Equals ( sys . testattr2 ) ) ;
129
129
}
130
130
}
131
131
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace Python.Runtime
12
12
/// PY3: https://docs.python.org/3/c-api/object.html
13
13
/// for details.
14
14
/// </summary>
15
- public class PyObject : DynamicObject , IDisposable
15
+ public class PyObject : DynamicObject , IEnumerable , IDisposable
16
16
{
17
17
protected internal IntPtr obj = IntPtr . Zero ;
18
18
private bool disposed = false ;
You can’t perform that action at this time.
0 commit comments