Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c69371

Browse files
committed
Rename TearDown to Dispose
Easier for future possible migration to other frameworks
1 parent e753b72 commit 3c69371

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/embed_tests/dynamic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public void SetUp()
1616
}
1717

1818
[TearDown]
19-
public void TearDown()
19+
public void Dispose()
2020
{
2121
gil.Dispose();
2222
}

src/embed_tests/pyimport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void SetUp()
3939
}
4040

4141
[TearDown]
42-
public void TearDown()
42+
public void Dispose()
4343
{
4444
PythonEngine.ReleaseLock(gs);
4545
PythonEngine.Shutdown();

src/embed_tests/pythonexception.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void SetUp()
2323
}
2424

2525
[TearDown]
26-
public void TearDown()
26+
public void Dispose()
2727
{
2828
PythonEngine.ReleaseLock(gs);
2929
PythonEngine.Shutdown();

0 commit comments

Comments
 (0)