File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ matrix:
1313 sources :
1414 - sourceline : deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main
1515 key_url : https://packages.microsoft.com/keys/microsoft.asc
16- - sourceline : deb http://download.mono-project.com/repo/debian trusty/snapshots/5.2.0.224 main
16+ - sourceline : deb http://download.mono-project.com/repo/ubuntu trusty main
1717 key_url : http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA6A19B38D3D831EF
1818 packages :
1919 - mono-devel
7777addons :
7878 apt :
7979 sources :
80- - sourceline : deb http://download.mono-project.com/repo/debian trusty/snapshots/5.2.0.224 main
80+ - sourceline : deb http://download.mono-project.com/repo/ubuntu trusty main
8181 key_url : http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA6A19B38D3D831EF
8282 packages :
8383 - mono-devel
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 @@ -15,7 +15,7 @@ namespace Python.Runtime
1515 /// PY3: https://docs.python.org/3/c-api/object.html
1616 /// for details.
1717 /// </summary>
18- public class PyObject : DynamicObject , IDisposable
18+ public class PyObject : DynamicObject , IEnumerable , IDisposable
1919 {
2020 protected internal IntPtr obj = IntPtr . Zero ;
2121 private bool disposed = false ;
You can’t perform that action at this time.
0 commit comments