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

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

src/embed_tests/Python.EmbeddingTest.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,17 +138,14 @@
138138
</Reference>
139139
</ItemGroup>
140140
<ItemGroup>
141-
<None Include="Embeddingtest.nunit" />
142141
<None Include="..\pythonnet.snk" />
143142
<None Include="packages.config" />
144143
<None Include="pythonnet.snk" Condition="Exists('pythonnet.snk')" />
145144
</ItemGroup>
146145
<ItemGroup>
147146
<Compile Include="InitializeTest.cs" />
148147
<Compile Include="pyimport.cs" />
149-
<Compile Include="pyiter.cs">
150-
<SubType>Code</SubType>
151-
</Compile>
148+
<Compile Include="pyiter.cs" />
152149
<Compile Include="pyobject.cs" />
153150
<Compile Include="pythonexception.cs" />
154151
</ItemGroup>

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
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ public void TestNoError()
4444
Assert.AreEqual("", e.Message);
4545
}
4646
}
47-
}
47+
}

0 commit comments

Comments
 (0)