Clean-up embedded tests project · pythonnet/pythonnet@7b76a1b · GitHub
Skip to content

Commit 7b76a1b

Browse files
committed
Clean-up embedded tests project
Remove reference to non-existing file Remove extra property from pyiter Fix typo and final line on files
1 parent 50bd03d commit 7b76a1b

5 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/embed_tests/Python.EmbeddingTest.csproj

Lines changed: 1 addition & 4 deletions

src/embed_tests/pyimport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void SetUp()
2020

2121
/*
2222
* Append the tests directory to sys.path
23-
* using reflection to circumvent the private modifires placed on most Runtime methods.
23+
* using reflection to circumvent the private modifiers placed on most Runtime methods.
2424
*/
2525
const string s = @"../../../../tests";
2626

src/embed_tests/pyiter.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ public void TestOnPyList()
3333
list.Append(new PyString("baz"));
3434
List<string> result = new List<string>();
3535
foreach (PyObject item in list)
36+
{
3637
result.Add(item.ToString());
38+
}
3739
Assert.AreEqual(3, result.Count);
3840
Assert.AreEqual("foo", result[0]);
3941
Assert.AreEqual("bar", result[1]);
4042
Assert.AreEqual("baz", result[2]);
4143
}
4244
}
43-
}
45+
}

src/embed_tests/pyobject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ public void TestUnicode()
3030
Assert.AreEqual("foo\u00e9", s.ToString());
3131
}
3232
}
33-
}
33+
}

src/embed_tests/pythonexception.cs

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)