[Python.NET] installation on GNU/Linux

python at axtom.com python at axtom.com
Mon Apr 3 17:42:06 CEST 2006



Hi all,

I have installed pythonnet and thought it would be of interest
to send the outputs of the tests included in the library.

--
Jean Pierre


configuration
-----------------
Debian GNU/Linux 3.1
  kernel  2.6
python-2.4.2
mono-1.1.13.4
pythonnet-1.0-rc2-py2.4-clr1.1



axtom:/opt/pythonnet# mono python.exe

Python 2.4.2 (#2, Apr  1 2006, 11:19:10)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import sys
>>> sys.path.append('/opt/pythonnet/src/tests')
>>> import runtests

>>> runtests.main()
..................F. test_exceptions
======================================================================
FAIL: Test the str() representation of an exception.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/pythonnet/src/tests/test_exceptions.py", line 310, in
testStrOfException
    self.failUnless(str(e).find('at System.DateTime.Parse') > -1)
AssertionError

----------------------------------------------------------------------
Ran 20 tests in 0.271s

FAILED (failures=1)
.......F............ test_module
======================================================================
FAIL: Test implicit assembly loading via import.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/pythonnet/src/tests/test_module.py", line 177, in
testImplicitAssemblyLoad
    self.failUnlessRaises(ImportError, test)
AssertionError: ImportError not raised

----------------------------------------------------------------------
Ran 20 tests in 0.127s

FAILED (failures=1)
.................... test_conversion
----------------------------------------------------------------------
Ran 20 tests in 0.054s

OK
............... test_class
----------------------------------------------------------------------
Ran 15 tests in 0.017s

OK
.... test_interface
----------------------------------------------------------------------
Ran 4 tests in 0.003s

OK
.....E......... test_enum
======================================================================
ERROR: Test enumeration conversion with FlagsAttribute set.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/pythonnet/src/tests/test_enum.py", line 130, in
testEnumWithFlagsAttrConversion
    label = Label()
NullReferenceException: Object reference not set to an instance of an object
in <0x00013> System.Windows.Forms.Label:get_DefaultSize ()
in <0x001b3> System.Windows.Forms.Control:.ctor ()
in <0x0001b> System.Windows.Forms.Label:.ctor ()
in <0x00000> <unknown method>
in (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke
(object,object[])
in <0x0008d> System.Reflection.MonoCMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[]
parameters, System.Globalization.CultureInfo culture)

----------------------------------------------------------------------
Ran 15 tests in 0.099s

FAILED (errors=1)
.............................. test_field
----------------------------------------------------------------------
Ran 30 tests in 0.005s

OK
.......... test_property
----------------------------------------------------------------------
Ran 10 tests in 0.004s

OK
............................ test_indexer
----------------------------------------------------------------------
Ran 28 tests in 0.100s

OK
....................Mono System.Windows.Forms Assembly [Revision: 54007; built:
2005/12/6 14:35:24]
E....... test_event
======================================================================
ERROR: Test remove on an event sink implemented w/internalcall.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/pythonnet/src/tests/test_event.py", line 505, in
testRemoveInternalCallHandler
    f = Form()
TypeInitializationException: An exception was thrown by the type initializer for
System.Windows.Forms.XplatUI
in <0x00000> <unknown method>
in <0x00064> System.Windows.Forms.Form:get_CreateParams ()
in <0x00273> System.Windows.Forms.Control:.ctor ()
in <0x00011> System.Windows.Forms.ScrollableControl:.ctor ()
in <0x00010> System.Windows.Forms.ContainerControl:.ctor ()
in <0x00019> System.Windows.Forms.Form:.ctor ()
in <0x00000> <unknown method>
in (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke
(object,object[])
in <0x0008d> System.Reflection.MonoCMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[]
parameters, System.Globalization.CultureInfo culture)

----------------------------------------------------------------------
Ran 28 tests in 0.180s

FAILED (errors=1)
.....................E..... test_method
======================================================================
ERROR: Test subclass instance conversion in method call.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/pythonnet/src/tests/test_method.py", line 235, in
testSubclassInstanceConversion
    form = sub()
NullReferenceException: Object reference not set to an instance of an object
in <0x0001d> System.Windows.Forms.XplatUI:CalculateWindowRect (IntPtr handle,
System.Drawing.Rectangle ClientRect, Int32 Style, Int32 ExStyle,
System.Windows.Forms.Menu menu, System.Drawing.Rectangle WindowRect)
in <0x002b0> System.Windows.Forms.Control:.ctor ()
in <0x00011> System.Windows.Forms.ScrollableControl:.ctor ()
in <0x00010> System.Windows.Forms.ContainerControl:.ctor ()
in <0x00019> System.Windows.Forms.Form:.ctor ()
in <0x00000> <unknown method>
in (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke
(object,object[])
in <0x0008d> System.Reflection.MonoCMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[]
parameters, System.Globalization.CultureInfo culture)

----------------------------------------------------------------------
Ran 27 tests in 0.077s

FAILED (errors=1)
................ test_delegate
----------------------------------------------------------------------
Ran 16 tests in 0.006s

OK
....................................... test_array
----------------------------------------------------------------------
Ran 39 tests in 0.108s

OK
... test_thread
----------------------------------------------------------------------
Ran 3 tests in 1.112s

OK
... idem
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.098s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.098s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.100s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.098s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.098s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.129s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.100s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.098s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.100s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.098s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.098s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 1.099s

OK
Total Time: 0.87



More information about the PythonDotNet mailing list