Ejemplo n.º 1
0
 def test_compile_dll_alternative_name(self):
     cwd, _ = os.path.split(__file__)
     mylib_py = os.path.join(cwd, 'mylib.py')
     compile_dll(mylib_py, 'mylibxxx.dll', copy_dll=False)
     res = self._csharp("""
         Console.WriteLine(mylibxxx.sum(20, 22));
     """, ['mylibxxx'])
     assert res == 42
Ejemplo n.º 2
0
 def test_compile_dll(self):
     cwd, _ = os.path.split(__file__)
     mylib_py = os.path.join(cwd, 'mylib.py')
     compile_dll(mylib_py, copy_dll=False)
     res = self._csharp('mylib', """
         Console.WriteLine(mylib.sum(20, 22));
     """)
     assert res == 42
Ejemplo n.º 3
0
 def test_compile_dll(self):
     py.test.skip('This test fails every other day. No clue why :-(')
     cwd, _ = os.path.split(__file__)
     mylib_py = os.path.join(cwd, 'mylib.py')
     compile_dll(mylib_py, copy_dll=False)
     res = self._csharp("""
         Console.WriteLine(mylib.sum(20, 22));
     """, ['mylib'])
     assert res == 42
Ejemplo n.º 4
0
 def test_compile_dll(self):
     py.test.skip('This test fails every other day. No clue why :-(')
     cwd, _ = os.path.split(__file__)
     mylib_py = os.path.join(cwd, 'mylib.py')
     compile_dll(mylib_py, copy_dll=False)
     res = self._csharp(
         """
         Console.WriteLine(mylib.sum(20, 22));
     """, ['mylib'])
     assert res == 42