Visitar URL original
fixed test · pythonnet/pythonnet@4a5764b · GitHub
Skip to content

Commit 4a5764b

Browse files
committed
fixed test
1 parent 985b4b3 commit 4a5764b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎src/embed_tests/Modules.cs‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,11 @@ public void TestCreateVirtualPackageStructure()
178178
{
179179
using (Py.GIL())
180180
{
181-
PyModule.FromString("scope",
182-
"class Class1():\n" +
181+
//parent module
182+
PyModule.FromString("test", "");
183+
//sub-module
184+
PyModule.FromString("test.scope",
185+
"class Class1():\n" +
183186
" def __init__(self, value):\n" +
184187
" self.value = value\n" +
185188
" def call(self, arg):\n" +

0 commit comments

Comments
 (0)