File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public void PassObjectInPython()
103103 Assert . AreEqual ( sys . testattr3 . ToString ( ) , "True" ) ;
104104
105105 // Compare in .NET
106- Assert . AreEqual ( sys . testattr1 , sys . testattr2 ) ;
106+ Assert . IsTrue ( sys . testattr1 . Equals ( sys . testattr2 ) ) ;
107107 }
108108
109109 /// <summary>
@@ -125,7 +125,7 @@ public void PassPyObjectInNet()
125125 Assert . AreEqual ( sys . testattr3 . ToString ( ) , "True" ) ;
126126
127127 // Compare in .NET
128- Assert . AreEqual ( sys . testattr1 , sys . testattr2 ) ;
128+ Assert . IsTrue ( sys . testattr1 . Equals ( sys . testattr2 ) ) ;
129129 }
130130 }
131131}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace Python.Runtime
1212 /// PY3: https://docs.python.org/3/c-api/object.html
1313 /// for details.
1414 /// </summary>
15- public class PyObject : DynamicObject , IDisposable
15+ public class PyObject : DynamicObject , IEnumerable , IDisposable
1616 {
1717 protected internal IntPtr obj = IntPtr . Zero ;
1818 private bool disposed = false ;
You can’t perform that action at this time.
0 commit comments