8000 Merge · csharpHub/pythonnet@6488c2a · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 6488c2a

Browse files
author
dse
committed
Merge
2 parents a2f303b + 27da1ca commit 6488c2a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
@@ -77,7 +77,7 @@ env:
7777
addons:
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

src/embed_tests/dynamic.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/runtime/pyobject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)
0