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:
13
13
sources :
14
14
- sourceline : deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main
15
15
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
17
17
key_url : http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA6A19B38D3D831EF
18
18
packages :
19
19
- mono-devel
77
77
addons :
78
78
apt :
79
79
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
81
81
key_url : http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA6A19B38D3D831EF
82
82
packages :
83
83
- mono-devel
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 @@ -15,7 +15,7 @@ namespace Python.Runtime
15
15
/// PY3: https://docs.python.org/3/c-api/object.html
16
16
/// for details.
17
17
/// </summary>
18
- public class PyObject : DynamicObject , IDisposable
18
+ public class PyObject : DynamicObject , IEnumerable , IDisposable
19
19
{
20
20
protected internal IntPtr obj = IntPtr . Zero ;
21
21
private bool disposed = false ;
You can’t perform that action at this time.
0 commit comments