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

Skip to content

Commit a9e2fe7

Browse files
committed
Relocate Embedded tests fixtures
Each test type should contain its own fixtures. Reduces weird dependency of each testing framework
1 parent 3c69371 commit a9e2fe7

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

src/embed_tests/pyimport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Python.EmbeddingTest
1010
/// </summary>
1111
/// <remarks>
1212
/// Keeping in old-style SetUp/TearDown due to required SetUp.
13-
/// The required directory structure was added to .\pythonnet\src\tests\ directory:
13+
/// The required directory structure was added to .\pythonnet\src\embed_tests\fixtures\ directory:
1414
/// + PyImportTest/
1515
/// | - __init__.py
1616
/// | + test/
@@ -30,7 +30,7 @@ public void SetUp()
3030
/* Append the tests directory to sys.path
3131
* using reflection to circumvent the private
3232
* modifiers placed on most Runtime methods. */
33-
const string s = "../../tests";
33+
const string s = "../fixtures";
3434
string testPath = Path.Combine(TestContext.CurrentContext.TestDirectory, s);
3535

3636
IntPtr str = Runtime.Runtime.PyString_FromString(testPath);

0 commit comments

Comments
 (0)